From 60b6ca8bc5b2322dcd0ec58d1dbd4ee3b8c28516 Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Mon, 25 Dec 2023 12:49:28 +0100 Subject: [PATCH] fix(ci): muted warnings in CI runs due to cache conflicts Every time a job is posted, I receive false alarm failure notifications because of some cache conflict during the linting job. Reference: golangci/golangci-lint-action#807 * ci: fixed code coverage on all sub packages Signed-off-by: Frederic BIDON --- .github/workflows/go-test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index e1a95c7..62682bf 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -18,6 +18,7 @@ jobs: with: version: latest only-new-issues: true + skip-cache: true test: name: Unit tests @@ -38,7 +39,7 @@ jobs: - uses: actions/checkout@v3 - - run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic ./... + - run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./... - name: Upload coverage to codecov uses: codecov/codecov-action@v3