Skip to content

Commit

Permalink
Update codecov-action from v3 to v4 (#1839)
Browse files Browse the repository at this point in the history
We need to specify the token due to rate limiting of their global
upload token.

We also want the workflow to fail if we can't upload the coverage
report for any reason. Otherwise, it is too easy to overlook the
absence of coverage data.
  • Loading branch information
hemberger authored May 14, 2024
1 parent 645d672 commit 445c186
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,12 @@ jobs:
run: composer phpunit

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: test/coverage/clover.xml
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true

phpstan:
name: PHPStan
Expand Down

0 comments on commit 445c186

Please sign in to comment.