diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index a6dc207563..c8c0ea29ab 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -7,6 +7,15 @@ on: - trunk paths: - '.github/workflows/test-coverage.yml' + - 'docker-compose.yml' + - 'phpunit.xml.dist' + - 'tests/phpunit/multisite.xml' + pull_request: + branches: + - trunk + paths: + - '.github/workflows/test-coverage.yml' + - 'docker-compose.yml' - 'phpunit.xml.dist' - 'tests/phpunit/multisite.xml' # Once daily at 00:00 UTC. @@ -150,7 +159,7 @@ jobs: run: git diff --exit-code - name: Upload single site report to Codecov - if: ${{ ! matrix.multisite }} + if: ${{ ! matrix.multisite && github.event_name != 'pull_request' }} uses: codecov/codecov-action@e3c560433a6cc60aec8812599b7844a7b4fa0d71 # v3.0.0 with: file: wp-code-coverage-single-clover-${{ github.sha }}.xml @@ -164,7 +173,7 @@ jobs: run: git diff --exit-code - name: Upload multisite report to Codecov - if: ${{ matrix.multisite }} + if: ${{ matrix.multisite && github.event_name != 'pull_request' }} uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # v2.1.0 with: file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml