Changeset 55520 for branches/5.5/.github/workflows/phpunit-tests.yml
- Timestamp:
- 03/10/2023 04:08:39 PM (18 months ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- 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.5/.github/workflows/phpunit-tests.yml
r53600 r55520 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 Node JS.43 # - Installs NPMdependencies42 # - Installs Node.js. 43 # - Installs npm dependencies 44 44 # - Configures caching for Composer. 45 45 # - Installs Composer dependencies. … … 108 108 109 109 - name: Checkout repository 110 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2111 112 - name: Install Node JS113 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0110 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 111 112 - name: Install Node.js 113 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 114 114 with: 115 115 node-version-file: '.nvmrc' 116 116 cache: npm 117 117 118 - name: Install Dependencies118 - name: Install npm dependencies 119 119 run: npm ci 120 120 121 - name: Get composer cache directory121 - name: Get Composer cache directory 122 122 id: composer-cache 123 run: echo " ::set-output name=dir::$(composer config cache-files-dir)"123 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT 124 124 125 125 - name: Cache Composer dependencies 126 uses: actions/cache@ c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4126 uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3 127 127 env: 128 128 cache-name: cache-composer-dependencies 129 129 with: 130 path: ${{ steps.composer-cache.outputs. dir }}130 path: ${{ steps.composer-cache.outputs.composer_dir }} 131 131 key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} 132 132 … … 216 216 - name: Checkout the WordPress Test Reporter 217 217 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 218 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2218 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 219 219 with: 220 220 repository: 'WordPress/phpunit-test-runner' … … 239 239 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 240 240 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 241 242 failed-workflow: 243 name: Failed workflow tasks 244 runs-on: ubuntu-latest 245 needs: [ test-php, slack-notifications ] 246 if: | 247 always() && 248 github.repository == 'WordPress/wordpress-develop' && 249 github.event_name != 'pull_request' && 250 github.run_attempt < 2 && 251 ( 252 needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure' 253 ) 254 255 steps: 256 - name: Dispatch workflow run 257 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 258 with: 259 retries: 2 260 retry-exempt-status-codes: 418 261 script: | 262 github.rest.actions.createWorkflowDispatch({ 263 owner: context.repo.owner, 264 repo: context.repo.repo, 265 workflow_id: 'failed-workflow.yml', 266 ref: 'trunk', 267 inputs: { 268 run_id: '${{ github.run_id }}' 269 } 270 });
Note: See TracChangeset
for help on using the changeset viewer.