Changeset 50600 for branches/5.7/.github/workflows/test-coverage.yml
- Timestamp:
- 03/26/2021 03:54:07 PM (4 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk reverse-merged: 50592-50595,50598
- Property svn:mergeinfo changed
-
branches/5.7/.github/workflows/test-coverage.yml
r50599 r50600 2 2 3 3 on: 4 # Verify5 push:6 branches:7 - master8 - trunk9 paths:10 - '.github/workflows/test-coverage.yml'11 - 'phpunit.xml.dist'12 - 'tests/phpunit/multisite.xml'13 4 # Once daily at 00:00 UTC. 14 5 schedule: 15 6 - cron: '0 0 * * *' 16 # Allow manually triggering the workflow.17 workflow_dispatch:18 7 19 8 env: … … 49 38 # - Upload the multisite code coverage report to Codecov.io. 50 39 test-coverage-report: 51 name: ${{ matrix.multisite && 'Multisite' || 'Single site' }}report40 name: Generate a code coverage report 52 41 runs-on: ubuntu-latest 53 42 if: ${{ github.repository == 'WordPress/wordpress-develop' }} 54 strategy:55 fail-fast: false56 matrix:57 multisite: [ false, true ]58 43 59 44 steps: … … 65 50 - name: Checkout repository 66 51 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 67 55 68 56 - name: Log debug information … … 128 116 129 117 - name: Run tests as a single site 130 if: ${{ ! matrix.multisite }}131 118 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c phpunit.xml.dist --coverage-clover wp-code-coverage-single-clover-${{ github.sha }}.xml 132 119 133 120 - name: Upload single site report to Codecov 134 if: ${{ ! matrix.multisite }}135 121 uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 136 122 with: … … 139 125 140 126 - name: Run tests as a multisite install 141 if: ${{ matrix.multisite }}142 127 run: npm run test:${{ env.PHPUNIT_SCRIPT }} -- --verbose -c tests/phpunit/multisite.xml --coverage-clover wp-code-coverage-multisite-clover-${{ github.sha }}.xml 143 128 144 129 - name: Upload multisite report to Codecov 145 if: ${{ matrix.multisite }}146 130 uses: codecov/codecov-action@e156083f13aff6830c92fc5faa23505779fbf649 # v1.2.1 147 131 with:
Note: See TracChangeset
for help on using the changeset viewer.