Skip to content

Commit 8fc3ff8

Browse files
committed
code coverage
1 parent f38ea61 commit 8fc3ff8

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/go.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ jobs:
2929
- name: Build
3030
run: go build -v ./...
3131

32-
- name: Test
33-
run: go test -v ./...
32+
- name: Test with coverage
33+
run: go test -p 1 -v -race -coverprofile=coverage.txt -covermode=atomic ./...
34+
35+
- name: Upload coverage to Codecov
36+
if: matrix.os == 'ubuntu-24.04'
37+
uses: codecov/codecov-action@v4
38+
with:
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
file: ./coverage.txt
41+
flags: unittests
42+
name: codecov-umbrella
43+
fail_ci_if_error: true

0 commit comments

Comments
 (0)