Ticket #52923: 52923.diff
File 52923.diff, 1.8 KB (added by , 4 years ago) |
---|
-
.github/workflows/test-coverage.yml
47 47 # - Run the PHPUnit tests as a multisite. 48 48 # - Upload the multisite code coverage report to Codecov.io. 49 49 test-coverage-report: 50 name: Generate a code coverage report50 name: Code coverage report (${{ matrix.multisite && 'multisite' || 'single site' }}) 51 51 runs-on: ubuntu-latest 52 52 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 53 strategy: 54 fail-fast: false 55 matrix: 56 multisite: [ false, true ] 53 57 54 58 steps: 55 59 - name: Configure environment variables … … 122 126 run: npm run env:install 123 127 124 128 - name: Run tests as a single site 129 if: ${{ ! matrix.multisite }} 125 130 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml 126 131 127 132 - name: Upload single site report to Codecov 133 if: ${{ ! matrix.multisite }} 128 134 uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 129 135 with: 130 136 file: wp-code-coverage-single-clover-${{ github.sha }}.xml 131 137 flags: single,php 132 138 133 139 - name: Run tests as a multisite install 140 if: ${{ matrix.multisite }} 134 141 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml 135 142 136 143 - name: Upload multisite report to Codecov 144 if: ${{ matrix.multisite }} 137 145 uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 138 146 with: 139 147 file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml