Skip to content

Commit

Permalink
Include Codecov in Github Actions rodrigo-brito#51
Browse files Browse the repository at this point in the history
Add codecov to test.yml.
Generate coverage report and upload coverage report with github actions.

Issue rodrigo-brito#51
  • Loading branch information
tullur committed Oct 12, 2020
1 parent 0719fa5 commit 6c02964
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ jobs:
go test -race -cover ./...
env:
GOPATH: /home/runner/work/gocity/go
- name: Generate coverage report
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.2
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella

0 comments on commit 6c02964

Please sign in to comment.