Skip to content

Commit

Permalink
Add codecov for test coverage (#56)
Browse files Browse the repository at this point in the history
* Add codecov for test coverage
  • Loading branch information
danielunderwood authored Oct 14, 2023
1 parent 56ad77d commit 1f3b163
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ jobs:
with:
fetch-depth: 1
- uses: actions/setup-go@v4
- run: go test
- run: go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
build:
name: "Build Code"
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
comment: # this is a top-level key
layout: " diff, flags, files"
behavior: default
require_changes: false # if true: only post the comment if coverage changes
require_base: false # [true :: must have a base report to post]
require_head: true # [true :: must have a head report to post]

0 comments on commit 1f3b163

Please sign in to comment.