Make WordPress Core

Changeset 50594


Ignore:
Timestamp:
03/26/2021 03:09:19 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Run code coverage workflow using parallel jobs.

This splits the code coverage workflow into two separate jobs, allowing single site and multisite to run in parallel. This cuts the total workflow run time in half.

Fixes #52923.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.github/workflows/test-coverage.yml

    r50593 r50594  
    4848  # - Upload the multisite code coverage report to Codecov.io.
    4949  test-coverage-report:
    50     name: Generate a code coverage report
     50    name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} report
    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:
     
    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:
     
    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:
Note: See TracChangeset for help on using the changeset viewer.