Browse Source

Configure codecov (#2995)

* Configure codevov

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>

* Disable annotations

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>

* Set ignore

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>

---------

Signed-off-by: shuheiktgw <s-kitagawa@mercari.com>
Shuhei Kitagawa 2 years ago
parent
commit
f32ea9f91d
2 changed files with 29 additions and 0 deletions
  1. 6 0
      .github/workflows/ci.yml
  2. 23 0
      codecov.yml

+ 6 - 0
.github/workflows/ci.yml

@@ -116,6 +116,12 @@ jobs:
         run: |
         run: |
           make test
           make test
 
 
+      - name: Publish Unit Test Coverage
+        uses: codecov/codecov-action@v3
+        with:
+          flags: unittests
+          file: ./cover.out
+
   publish-artifacts:
   publish-artifacts:
     needs: detect-noop
     needs: detect-noop
     if: needs.detect-noop.outputs.noop != 'true'
     if: needs.detect-noop.outputs.noop != 'true'

+ 23 - 0
codecov.yml

@@ -0,0 +1,23 @@
+# When modifying this file, please validate using
+# curl -X POST --data-binary @codecov.yml https://codecov.io/validate
+ignore:
+  - "**/zz_generated.deepcopy.go"
+  - "assets"
+  - "config"
+  - "deploy"
+  - "design"
+  - "docs"
+  - "e2e"
+  - "hacks"
+  - "overrides"
+  - "terraform"
+github_checks:
+  annotations: false
+coverage:
+  status:
+    project:
+      default:
+        informational: true
+    patch:
+      default:
+        informational: true