Skip to content

Commit

Permalink
Disable code coverage job for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
scheb committed Oct 20, 2024
1 parent b361f3a commit 519d396
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ jobs:
code-coverage:
name: 'Code Coverage - PHP ${{ matrix.php-version }}'
runs-on: 'ubuntu-latest'
# We want to run on external PRs, but not on our own internal PRs as they'll be run by the push to the branch.
if: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) }}
# Do not run on PRs, because Codecov upload for PRs is failing
if: ${{ github.event_name != 'pull_request' }}

strategy:
fail-fast: false
Expand All @@ -136,7 +136,7 @@ jobs:
run: vendor/bin/phpunit --coverage-clover coverage/clover.xml

- name: 'Send Coverage to Codecov'
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/clover.xml
Expand Down

0 comments on commit 519d396

Please sign in to comment.