Changeset 55516 for branches/5.9/.github/workflows/phpunit-tests.yml
- Timestamp:
- 03/10/2023 03:52:41 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/.github/workflows/phpunit-tests.yml
r53596 r55516 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: … … 41 41 # - Sets environment variables. 42 42 # - Sets up the environment variables needed for testing with memcached (if desired). 43 # - Installs Node JS.44 # - Installs NPMdependencies43 # - Installs Node.js. 44 # - Installs npm dependencies 45 45 # - Configures caching for Composer. 46 46 # - Installs Composer dependencies. … … 111 111 112 112 - name: Checkout repository 113 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2114 115 - name: Install Node JS116 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0113 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 114 115 - name: Install Node.js 116 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 117 117 with: 118 118 node-version-file: '.nvmrc' 119 119 cache: npm 120 120 121 - name: Install Dependencies121 - name: Install npm dependencies 122 122 run: npm ci 123 123 … … 126 126 - name: "Get last Monday's date" 127 127 id: get-date 128 run: echo " ::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"128 run: echo "date=$(/bin/date -u --date='last Mon' "+%F")" >> $GITHUB_OUTPUT 129 129 130 130 - name: Get Composer cache directory 131 131 id: composer-cache 132 run: echo " ::set-output name=dir::$(composer config cache-files-dir)"132 run: echo "composer_dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT 133 133 134 134 - name: Cache Composer dependencies 135 uses: actions/cache@ c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4135 uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 # v3.2.3 136 136 env: 137 137 cache-name: cache-composer-dependencies 138 138 with: 139 path: ${{ steps.composer-cache.outputs. dir }}139 path: ${{ steps.composer-cache.outputs.composer_dir }} 140 140 key: ${{ runner.os }}-php-${{ matrix.php }}-date-${{ steps.get-date.outputs.date }}-composer-${{ hashFiles('**/composer.json') }} 141 141 … … 232 232 - name: Checkout the WordPress Test Reporter 233 233 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }} 234 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2234 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 235 235 with: 236 236 repository: 'WordPress/phpunit-test-runner' … … 255 255 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 256 256 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 257 258 failed-workflow: 259 name: Failed workflow tasks 260 runs-on: ubuntu-latest 261 needs: [ test-php, slack-notifications ] 262 if: | 263 always() && 264 github.repository == 'WordPress/wordpress-develop' && 265 github.event_name != 'pull_request' && 266 github.run_attempt < 2 && 267 ( 268 needs.test-php.result == 'cancelled' || needs.test-php.result == 'failure' 269 ) 270 271 steps: 272 - name: Dispatch workflow run 273 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 274 with: 275 retries: 2 276 retry-exempt-status-codes: 418 277 script: | 278 github.rest.actions.createWorkflowDispatch({ 279 owner: context.repo.owner, 280 repo: context.repo.repo, 281 workflow_id: 'failed-workflow.yml', 282 ref: 'trunk', 283 inputs: { 284 run_id: '${{ github.run_id }}' 285 } 286 });
Note: See TracChangeset
for help on using the changeset viewer.