This is an automated email from the ASF dual-hosted git repository.

jimin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-k8s.git


The following commit(s) were added to refs/heads/master by this push:
     new dfeee42  optimize: add UT coverage (#46)
dfeee42 is described below

commit dfeee42774a7383718098c5979c8298bf82d1f63
Author: jimin <[email protected]>
AuthorDate: Sun Jan 4 10:20:22 2026 +0800

    optimize: add UT coverage (#46)
---
 .github/workflows/build.yml | 11 ++++++++-
 README.md                   |  3 +++
 codecov.yml                 | 54 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 93b17eb..c12b642 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -26,4 +26,13 @@ jobs:
         uses: docker/setup-buildx-action@v3
 
       - name: Docker Build And Go Test
-        run: make docker-build
\ No newline at end of file
+        run: make docker-build
+
+      - name: Upload coverage to Codecov
+        uses: codecov/codecov-action@v3
+        with:
+          file: ./cover.out
+          flags: unittests
+          name: codecov-umbrella
+          fail_ci_if_error: false
+          verbose: true
\ No newline at end of file
diff --git a/README.md b/README.md
index ad57cf5..d667079 100644
--- a/README.md
+++ b/README.md
@@ -19,6 +19,9 @@
 
 [中文文档](README.zh.md) | [English](README.md)
 
+[![build](https://github.com/apache/incubator-seata-k8s/actions/workflows/build.yml/badge.svg)](https://github.com/apache/incubator-seata-k8s/actions/workflows/build.yml)
+[![codecov](https://codecov.io/gh/apache/incubator-seata-k8s/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/incubator-seata-k8s)
+
 ## Overview
 
 seata-k8s is a Kubernetes operator for deploying and managing [Apache 
Seata](https://github.com/seata/seata) distributed transaction servers. It 
provides a streamlined way to deploy Seata Server clusters on Kubernetes with 
automatic scaling, persistence management, and operational simplicity.
diff --git a/codecov.yml b/codecov.yml
new file mode 100644
index 0000000..6b818cd
--- /dev/null
+++ b/codecov.yml
@@ -0,0 +1,54 @@
+---
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+coverage:
+  precision: 2
+  round: down
+  status:
+    project:
+      default:
+        target: 60
+        threshold: 5
+        base: auto
+    patch:
+      default:
+        target: 70
+        threshold: 5
+
+ignore:
+  - "**/*_test.go"
+  - "**/zz_generated*.go"
+  - "hack"
+
+fixes:
+  - "::gocov"
+
+comment:
+  layout: "reach,diff,flags,tree"
+  require_changes: false
+  require_base: false
+  require_head: true
+  delete: false
+
+github_checks:
+  annotations: true
+
+notifications:
+  webhook:
+    only_pulls: false
+    require_ci_to_pass: true
+


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to