From c3929bd384c6f07f8f669b821956fbc1d01bade4 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Wed, 2 Oct 2024 22:50:48 +0200 Subject: [PATCH] chore(ci): support codecov action --- .github/workflows/tests.yml | 19 +++++++++---------- .gitignore | 4 ++++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1e993e7..5014b4e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,7 +1,7 @@ name: Tests on: pull_request: - types: [opened, synchronize, reopened, labeled] + types: [opened, synchronize, reopened] merge_group: types: [checks_requested] @@ -46,15 +46,14 @@ jobs: - name: Test and Create Coverage Report if: env.GIT_DIFF run: | - EXPERIMENTAL=true make test-unit - # EXPERIMENTAL=true make test-unit-cover - # - uses: codecov/codecov-action@v4.6.0 - # if: env.GIT_DIFF - # with: - # token: ${{ secrets.CODECOV_TOKEN }} - # file: ./coverage.txt - # fail_ci_if_error: true - # verbose: true + EXPERIMENTAL=true make test-unit-cover + - uses: codecov/codecov-action@v4.6.0 + if: env.GIT_DIFF + with: + token: ${{ secrets.CODECOV_TOKEN }} + file: ./coverage.txt + fail_ci_if_error: true + # verbose: true # test-e2e: # # skip the e2e tests when `skip-e2e-test` label is present on pull request diff --git a/.gitignore b/.gitignore index 7182b2c..fdb60c9 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,7 @@ go.work.sum # binaries out + +# tests + +coverage.txt