Skip to content

Commit a6ebccf

Browse files
committed
GH Actions: upgrade to Codecov v4
The CodeCov v4 update makes a token for uploading code coverage a requirement. This is problematic for forks, though they try to work around this. In practice, they are failing hard though on all counts. However, as uploading via the v3 action runner by now is failing _every single run_, it seems we have no choice but to update. I've regenerated a token and added a `CODECOV_TOKEN` secret to the repo. For PRs directly on this repo, that should be sufficient and should also remove the need for the `wretry.action`. For PRs from forks, it will be hit and miss. We'll have to see. Refs: * https://github.com/codecov/codecov-action/releases * https://github.com/codecov/codecov-action/releases/tag/v4.0.0 * https://docs.codecov.com/docs/adding-the-codecov-token#github-actions
1 parent 8bc41f3 commit a6ebccf

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,9 @@ jobs:
137137

138138
- name: Send coverage report to Codecov
139139
if: ${{ success() && matrix.coverage == true }}
140-
uses: Wandalen/wretry.action@master
140+
uses: codecov/codecov-action@v4
141141
with:
142-
action: codecov/codecov-action@v3
143-
with: |
144-
files: ./clover.xml
145-
fail_ci_if_error: true
146-
verbose: true
142+
token: "${{ secrets.CODECOV_TOKEN }}"
143+
files: ./clover.xml
144+
fail_ci_if_error: true
145+
verbose: true

0 commit comments

Comments
 (0)