Changeset 55528 for branches/4.8/.github/workflows/phpunit-tests.yml
- Timestamp:
- 03/10/2023 04:28:49 PM (9 months ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 53736-53737,53940,53947,54039,54096,54108,54293,54313,54342-54343,54373,54511,54650-54651,54674,54750,54852,55152,55487
- Property svn:mergeinfo changed
-
branches/4.8/.github/workflows/phpunit-tests.yml
r53610 r55528 8 8 - '[4-9].[0-9]' 9 9 tags: 10 - ' 3.[7-9]*'11 - '[ 4-9].[0-9]*'10 - '[0-9]+.[0-9]' 11 - '[0-9]+.[0-9].[0-9]+' 12 12 pull_request: 13 13 branches: … … 31 31 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 32 32 COMPOSER_INSTALL: ${{ false }} 33 # Controls which NPMscript to use for running PHPUnit tests. Options ar `php` and `php-composer`.33 # Controls which npm script to use for running PHPUnit tests. Options ar `php` and `php-composer`. 34 34 PHPUNIT_SCRIPT: php 35 35 LOCAL_PHP_MEMCACHED: ${{ false }} … … 44 44 # - Logs debug information about the GitHub Action runner. 45 45 # - Installs NodeJS. 46 # _ Installs NPMdependencies.46 # _ Installs npm dependencies. 47 47 # - Builds WordPress to run from the `build` directory. 48 48 # - Creates a ZIP file of compiled WordPress. … … 55 55 steps: 56 56 - name: Checkout repository 57 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.257 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 58 58 59 59 - name: Log debug information … … 70 70 locale -a 71 71 72 - name: Install NodeJS73 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.072 - name: Set up Node.js 73 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 74 74 with: 75 75 node-version-file: '.nvmrc' … … 83 83 84 84 - name: Create ZIP artifact 85 uses: thedoctor0/zip-release@ 09336613be18a8208dfa66bd57efafd9e2685657 # v0.6.285 uses: thedoctor0/zip-release@a24011d8d445e4da5935a7e73c1f98e22a439464 # v0.7.1 86 86 with: 87 87 filename: built-wp-${{ github.sha }}.zip … … 89 89 90 90 - name: Upload build artifact 91 uses: actions/upload-artifact@ 3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.091 uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 92 92 with: 93 93 name: built-wp-${{ github.sha }} … … 103 103 # - Unzips the artifact. 104 104 # - Installs NodeJS. 105 # _ Installs NPMdependencies.105 # _ Installs npm dependencies. 106 106 # - Configures caching for Composer. 107 107 # _ Installs Composer dependencies (if desired). … … 203 203 204 204 - name: Download the built WordPress artifact 205 uses: actions/download-artifact@ fb598a63ae348fa914e94cd0ff38f362e927b741 # v3.0.0205 uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 206 206 with: 207 207 name: built-wp-${{ github.sha }} … … 210 210 run: unzip built-wp-${{ github.sha }}.zip 211 211 212 - name: Install NodeJS213 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0212 - name: Set up Node.js 213 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 214 214 with: 215 215 node-version-file: '.nvmrc' … … 221 221 - name: Cache Composer dependencies 222 222 if: ${{ env.COMPOSER_INSTALL == true }} 223 uses: actions/cache@ c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4223 uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6 224 224 env: 225 225 cache-name: cache-composer-dependencies … … 302 302 - name: Checkout the WordPress Test Reporter 303 303 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 304 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2304 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 305 305 with: 306 306 repository: 'WordPress/phpunit-test-runner' … … 333 333 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 334 334 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 335 336 failed-workflow: 337 name: Failed workflow tasks 338 runs-on: ubuntu-latest 339 needs: [ test-php, slack-notifications ] 340 if: | 341 always() && 342 github.repository == 'WordPress/wordpress-develop' && 343 github.event_name != 'pull_request' && 344 github.run_attempt < 2 && 345 ( 346 needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure' 347 ) 348 349 steps: 350 - name: Dispatch workflow run 351 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 352 with: 353 retries: 2 354 retry-exempt-status-codes: 418 355 script: | 356 github.rest.actions.createWorkflowDispatch({ 357 owner: context.repo.owner, 358 repo: context.repo.repo, 359 workflow_id: 'failed-workflow.yml', 360 ref: 'trunk', 361 inputs: { 362 run_id: '${{ github.run_id }}' 363 } 364 });
Note: See TracChangeset
for help on using the changeset viewer.