Skip to content

Commit 71bf303

Browse files
committed
Add codecov workflow
1 parent 29c3fb2 commit 71bf303

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,20 @@ jobs:
2222
run: go build -v ./...
2323

2424
- name: Test
25-
run: go test -v ./...
25+
run: go test -race -v ./...
26+
27+
coverage:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@v3
31+
32+
- name: Set up Go
33+
uses: actions/setup-go@v3
34+
with:
35+
go-version: 1.18
36+
37+
- name: Test
38+
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...
39+
40+
- name: Upload coverage to Codecov
41+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)