Skip to content

Commit

Permalink
ci: add codecov reporting (#8)
Browse files Browse the repository at this point in the history
ci(tests): use CGO as race won't work otherwise
  • Loading branch information
nobbs authored Dec 30, 2023
1 parent 030e4c1 commit 05f0d65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ jobs:
go-version-file: ./go.mod

- name: Run tests
run: go test -v ./...
run: go test -race -coverprofile=coverage.txt -covermode=atomic -v ./...

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CGO_ENABLED: 0
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 05f0d65

Please sign in to comment.