From d7a4b82fe9d393218e07285084d8df630ba13f2e Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 24 Apr 2024 20:16:31 +0200 Subject: [PATCH] CI: Fix uploading code coverage reports to Codecov Codecov now needs an access token. --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3c685c5..50087a2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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.'))