Skip to content

Commit

Permalink
fix: update CodeCov to v4.
Browse files Browse the repository at this point in the history
CodeCov upload has been consistently failing when trying to upload
coverage for a PR from a fork. This change updates CodeCov to v4 and
sets the `CODECOV_TOKEN` env var in an attempt to fix this issue.

See codecov/codecov-action#598
  • Loading branch information
rdleal committed Apr 27, 2024
1 parent bddfefa commit f110c7c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
- name: Test
run: go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...
- name: Report coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.txt
fail_ci_if_error: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit f110c7c

Please sign in to comment.