Skip to content

Commit bca0d08

Browse files
authored
ci: setup coverage (#1)
1 parent a7fa0d3 commit bca0d08

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/go.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ jobs:
2828
- name: Build
2929
run: go build -v .
3030

31-
- name: Test
32-
run: |
33-
go test -coverprofile=c.out -v ./...
34-
3531
- name: Lint
3632
run: |
3733
$(gofmt -l .) || (gofmt -d .; exit 1)
34+
35+
- name: Test & publish code coverage
36+
env:
37+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
38+
run: |
39+
go test -race -coverprofile=coverage.txt -covermode=atomic
40+
bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)