Skip to content

Commit

Permalink
Include Codecov in Github Actions #51
Browse files Browse the repository at this point in the history
Update tests.yml in workflows with codecov.
Codecov - generate coverage report and upload coverage report with github actions.

Closes #51
  • Loading branch information
tullur authored and rodrigo-brito committed Oct 12, 2020
1 parent 0719fa5 commit 9839494
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ jobs:
GOPATH: /home/runner/work/gocity/go
- name: Test
run: |
go test -race -cover ./...
go test -race -cover -coverprofile=coverage.txt -covermode=atomic ./...
env:
GOPATH: /home/runner/work/gocity/go
- name: Upload coverage report
uses: codecov/codecov-action@v1.0.13
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella

0 comments on commit 9839494

Please sign in to comment.