Skip to content

Commit

Permalink
add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiling-J authored Nov 22, 2021
1 parent c9c95e5 commit 19bc6ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ jobs:
- uses: actions/checkout@v2

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

run: go test -race -coverprofile=coverage.txt -covermode=atomic -coverpkg=github.com/Yiling-J/piper,github.com/Yiling-J/piper/cmd,github.com/Yiling-J/piper/integration ./...
- name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit 19bc6ba

Please sign in to comment.