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