Skip to content

Commit

Permalink
Updated CI workflow to upload code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
yaricom committed Dec 7, 2023
1 parent 8f26b69 commit a69d821
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,13 @@ jobs:
run: go build -v ./...
env:
GO111MODULE: on

- name: Run test coverage
run: go test -coverprofile=coverage.txt -covermode=atomic -v ./...
env:
GO111MODULE: on

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

0 comments on commit a69d821

Please sign in to comment.