Skip to content

Commit

Permalink
CI: Fix uploading code coverage reports to Codecov
Browse files Browse the repository at this point in the history
Codecov now needs an access token.
  • Loading branch information
amotl committed Apr 24, 2024
1 parent 5112d6d commit d7a4b82
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,16 @@ jobs:

# https://github.com/codecov/codecov-action
- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v3
if: always() && (matrix.php-version == '7.4' || startsWith(matrix.php-version, '8.'))
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: ./build/logs/clover.xml
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
if: always() && (matrix.php-version == '7.4' || startsWith(matrix.php-version, '8.'))

- name: Upload coverage results to Scrutinizer CI
if: always() && (matrix.php-version == '7.4' || startsWith(matrix.php-version, '8.'))
Expand Down

0 comments on commit d7a4b82

Please sign in to comment.