Make WordPress Core

Ticket #52923: 52923.diff

File 52923.diff, 1.8 KB (added by desrosj, 4 years ago)
  • .github/workflows/test-coverage.yml

     
    4747  # - Run the PHPUnit tests as a multisite.
    4848  # - Upload the multisite code coverage report to Codecov.io.
    4949  test-coverage-report:
    50     name: Generate a code coverage report
     50    name: Code coverage report (${{ matrix.multisite && 'multisite' || 'single site' }})
    5151    runs-on: ubuntu-latest
    5252    if: ${{ github.repository == 'WordPress/wordpress-develop' }}
     53    strategy:
     54      fail-fast: false
     55      matrix:
     56        multisite: [ false, true ]
    5357
    5458    steps:
    5559      - name: Configure environment variables
     
    122126        run: npm run env:install
    123127
    124128      - name: Run tests as a single site
     129        if: ${{ ! matrix.multisite }}
    125130        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml
    126131
    127132      - name: Upload single site report to Codecov
     133        if: ${{ ! matrix.multisite }}
    128134        uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
    129135        with:
    130136          file: wp-code-coverage-single-clover-${{ github.sha }}.xml
    131137          flags: single,php
    132138
    133139      - name: Run tests as a multisite install
     140        if: ${{ matrix.multisite }}
    134141        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml
    135142
    136143      - name: Upload multisite report to Codecov
     144        if: ${{ matrix.multisite }}
    137145        uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
    138146        with:
    139147          file: wp-code-coverage-multisite-clover-${{ github.sha }}.xml