Skip to content

Commit b445199

Browse files
committed
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 Signed-off-by: Frederic BIDON <[email protected]>
1 parent ee158df commit b445199

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/go-test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
with:
1919
version: latest
2020
only-new-issues: true
21+
skip-cache: true
2122

2223
test:
2324
name: Unit tests
@@ -38,7 +39,7 @@ jobs:
3839

3940
- uses: actions/checkout@v3
4041

41-
- run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic ./...
42+
- run: go test -v -race -coverprofile="coverage-${{ matrix.os }}.${{ matrix.go_version }}.out" -covermode=atomic -coverpkg=$(go list)/... ./...
4243

4344
- name: Upload coverage to codecov
4445
uses: codecov/codecov-action@v3

0 commit comments

Comments
 (0)