From f32ea9f91de10d4dff4bf4b9859ecaeb869730ba Mon Sep 17 00:00:00 2001 From: Shuhei Kitagawa Date: Sat, 6 Jan 2024 07:26:39 +0900 Subject: [PATCH] Configure codecov (#2995) * Configure codevov Signed-off-by: shuheiktgw * Disable annotations Signed-off-by: shuheiktgw * Set ignore Signed-off-by: shuheiktgw --------- Signed-off-by: shuheiktgw --- .github/workflows/ci.yml | 6 ++++++ codecov.yml | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index febc5c155..8dfbfdc4f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,12 @@ jobs: run: | make test + - name: Publish Unit Test Coverage + uses: codecov/codecov-action@v3 + with: + flags: unittests + file: ./cover.out + publish-artifacts: needs: detect-noop if: needs.detect-noop.outputs.noop != 'true' diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..a4795cabd --- /dev/null +++ b/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