Make WordPress Core


Ignore:
Timestamp:
03/26/2021 04:07:38 PM (4 years ago)
Author:
desrosj
Message:

Build/Test Tools: Backport several build tool fixes & improvements.

This backports a handful of test fixes related to generating code coverage reporting, as well as some devDependency updates.

Backports [50591-50595,50597-50598] to the 5.7 branch.
See #52624, #52786, #51734.

Location:
branches/5.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.7

  • branches/5.7/.github/workflows/test-coverage.yml

    r50600 r50601  
    22
    33on:
     4  # Verify
     5  push:
     6    branches:
     7      - master
     8      - trunk
     9    paths:
     10      - '.github/workflows/test-coverage.yml'
     11      - 'phpunit.xml.dist'
     12      - 'tests/phpunit/multisite.xml'
    413  # Once daily at 00:00 UTC.
    514  schedule:
    615    - cron: '0 0 * * *'
     16  # Allow manually triggering the workflow.
     17  workflow_dispatch:
    718
    819env:
     
    3849  # - Upload the multisite code coverage report to Codecov.io.
    3950  test-coverage-report:
    40     name: Generate a code coverage report
     51    name: ${{ matrix.multisite && 'Multisite' || 'Single site' }} report
    4152    runs-on: ubuntu-latest
    4253    if: ${{ github.repository == 'WordPress/wordpress-develop' }}
     54    strategy:
     55      fail-fast: false
     56      matrix:
     57        multisite: [ false, true ]
    4358
    4459    steps:
     
    5065      - name: Checkout repository
    5166        uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
    52 
    53       - name: Checkout the WordPress Importer plugin
    54         run: svn checkout -r 2387243 https://plugins.svn.wordpress.org/wordpress-importer/trunk/ tests/phpunit/data/plugins/wordpress-importer
    5567
    5668      - name: Log debug information
     
    116128
    117129      - name: Run tests as a single site
     130        if: ${{ ! matrix.multisite }}
    118131        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml
    119132
    120133      - name: Upload single site report to Codecov
     134        if: ${{ ! matrix.multisite }}
    121135        uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
    122136        with:
     
    125139
    126140      - name: Run tests as a multisite install
     141        if: ${{ matrix.multisite }}
    127142        run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml
    128143
    129144      - name: Upload multisite report to Codecov
     145        if: ${{ matrix.multisite }}
    130146        uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1
    131147        with:
Note: See TracChangeset for help on using the changeset viewer.