Skip to content

Commit

Permalink
Add codecov workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
elgopher committed May 2, 2022
1 parent 29c3fb2 commit 71bf303
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,20 @@ jobs:
run: go build -v ./...

- name: Test
run: go test -v ./...
run: go test -race -v ./...

coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18

- name: Test
run: go test -v -coverprofile=coverage.txt -covermode=atomic ./...

- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 71bf303

Please sign in to comment.