From b98da8a0b4f2b621dde34d246bd768b8e051c80e Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:12:15 +0100 Subject: [PATCH 1/2] chore: codecov config Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- codecov.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 00000000..f5f9e02c --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +comment: false + +coverage: + status: + project: # settings affecting project coverage + default: + target: auto # auto % coverage target + threshold: 1% # allow for 1% reduction of coverage without failing + patch: off + +github_checks: + annotations: false From 34ca0de8fac74238a2922904292e86f98888739c Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:13:31 +0100 Subject: [PATCH 2/2] ci: set codecov token Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b239d2c1..850b7e95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,6 +87,7 @@ jobs: with: directory: ${{ env.DESTDIR }}/coverage flags: unit,${{ matrix.mode }},go-${{ matrix.go }} + token: ${{ secrets.CODECOV_TOKEN }} test-os: runs-on: ${{ matrix.os }} @@ -121,6 +122,7 @@ jobs: file: ./coverage.txt env_vars: RUNNER_OS flags: unit,go-${{ matrix.go }} + token: ${{ secrets.CODECOV_TOKEN }} test-freebsd-amd64: runs-on: macos-13 @@ -174,3 +176,4 @@ jobs: with: file: ./coverage.txt flags: unit,freebsd + token: ${{ secrets.CODECOV_TOKEN }}