Changeset 55517 for branches/5.8/.github/workflows/phpunit-tests.yml
- Timestamp:
- 03/10/2023 04:07:11 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
.github/workflows/phpunit-tests.yml (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 53736-53737,53940,53947,54039,54096,54108,54293,54313,54342-54343,54373,54511,54649-54651,54674,54750,54852,55152,55487
- Property svn:mergeinfo changed
-
branches/5.8/.github/workflows/phpunit-tests.yml
r53597 r55517 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: … … 29 29 env: 30 30 PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: ${{ true }} 31 # Controls which NPMscript to use for running PHPUnit tests. Options ar `php` and `php-composer`.31 # Controls which npm script to use for running PHPUnit tests. Options ar `php` and `php-composer`. 32 32 PHPUNIT_SCRIPT: php 33 33 LOCAL_PHP_MEMCACHED: ${{ false }} … … 40 40 # - Sets environment variables. 41 41 # - Sets up the environment variables needed for testing with memcached (if desired). 42 # - Installs NodeJS. 43 # - Sets up caching for NPM. 44 # - Installs NPM dependencies 42 # - Installs Node.js. 43 # - Installs npm dependencies 45 44 # - Configures caching for Composer. 46 45 # - Installs Composer dependencies. … … 110 109 111 110 - name: Checkout repository 112 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2113 114 - name: Install Node JS115 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0111 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 112 113 - name: Install Node.js 114 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 116 115 with: 117 116 node-version-file: '.nvmrc' 118 117 cache: npm 119 118 120 - name: Install Dependencies119 - name: Install npm dependencies 121 120 run: npm ci 122 121 123 122 - name: Get composer cache directory 124 123 id: composer-cache 125 run: echo " ::set-output name=dir::$(composer config cache-files-dir)"124 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT 126 125 127 126 - name: Cache Composer dependencies 128 uses: actions/cache@ c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4127 uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11 129 128 env: 130 129 cache-name: cache-composer-dependencies 131 130 with: 132 path: ${{ steps.composer-cache.outputs. dir }}131 path: ${{ steps.composer-cache.outputs.composer_dir }} 133 132 key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} 134 133 … … 229 228 - name: Checkout the WordPress Test Reporter 230 229 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 231 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2230 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 232 231 with: 233 232 repository: 'WordPress/phpunit-test-runner' … … 252 251 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 253 252 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 253 254 failed-workflow: 255 name: Failed workflow tasks 256 runs-on: ubuntu-latest 257 needs: [ test-php, slack-notifications ] 258 if: | 259 always() && 260 github.repository == 'WordPress/wordpress-develop' && 261 github.event_name != 'pull_request' && 262 github.run_attempt < 2 && 263 ( 264 needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure' 265 ) 266 267 steps: 268 - name: Dispatch workflow run 269 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 270 with: 271 retries: 2 272 retry-exempt-status-codes: 418 273 script: | 274 github.rest.actions.createWorkflowDispatch({ 275 owner: context.repo.owner, 276 repo: context.repo.repo, 277 workflow_id: 'failed-workflow.yml', 278 ref: 'trunk', 279 inputs: { 280 run_id: '${{ github.run_id }}' 281 } 282 });
Note: See TracChangeset
for help on using the changeset viewer.