Skip to content

Commit 97bb8fb

Browse files
committed
fix: switch to atomic coverage counts
This makes the counts accurate for parallel tests.
1 parent 703d2b8 commit 97bb8fb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
go-version: stable
1717
- name: Calculate coverage
1818
run: |
19-
go test -v -covermode=count -coverprofile=cover.out.raw -coverpkg=./... ./...
19+
go test -v -covermode=atomic -coverprofile=cover.out.raw -coverpkg=./... ./...
2020
# remove mocks from coverage calculation
2121
grep -v mock_ cover.out.raw > cover.out
2222
- name: Generage coverage badge

0 commit comments

Comments
 (0)