From 8a258df1f0ffd5e356fca0eadd25c51d87e8e9de Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Sun, 24 Dec 2023 19:14:37 +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: https://github.com/golangci/golangci-lint-action/issues/807 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