Changeset 55516 for branches/5.9/.github/workflows/javascript-tests.yml
- Timestamp:
- 03/10/2023 03:52:41 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.9/.github/workflows/javascript-tests.yml
r53596 r55516 9 9 - '[4-9].[0-9]' 10 10 tags: 11 - '3.[89]*' 12 - '[4-9].[0-9]*' 11 - '[0-9]+.[0-9]' 12 - '[0-9]+.[0-9].[0-9]+' 13 - '!3.7.[0-9]+' 13 14 pull_request: 14 15 branches: … … 19 20 # Any change to a JavaScript file should run tests. 20 21 - '**.js' 21 # These files configure NPM. Changes could affect the outcome.22 # These files configure npm. Changes could affect the outcome. 22 23 - 'package*.json' 23 24 # This file configures ESLint. Changes could affect the outcome. … … 44 45 # - Checks out the repository. 45 46 # - Logs debug information about the GitHub Action runner. 46 # - Installs Node JS.47 # - Installs Node.js. 47 48 # - Logs updated debug information. 48 # _ Installs NPMdependencies.49 # _ Installs npm dependencies. 49 50 # - Run the WordPress QUnit tests. 50 51 # - Ensures version-controlled files are not modified or deleted. … … 57 58 steps: 58 59 - name: Checkout repository 59 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.260 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 60 61 61 62 - name: Log debug information … … 66 67 svn --version 67 68 68 - name: Install Node JS69 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.069 - name: Install Node.js 70 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 70 71 with: 71 72 node-version-file: '.nvmrc' … … 98 99 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 99 100 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 101 102 failed-workflow: 103 name: Failed workflow tasks 104 runs-on: ubuntu-latest 105 needs: [ test-js, slack-notifications ] 106 if: | 107 always() && 108 github.repository == 'WordPress/wordpress-develop' && 109 github.event_name != 'pull_request' && 110 github.run_attempt < 2 && 111 ( 112 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 113 ) 114 115 steps: 116 - name: Dispatch workflow run 117 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 118 with: 119 retries: 2 120 retry-exempt-status-codes: 418 121 script: | 122 github.rest.actions.createWorkflowDispatch({ 123 owner: context.repo.owner, 124 repo: context.repo.repo, 125 workflow_id: 'failed-workflow.yml', 126 ref: 'trunk', 127 inputs: { 128 run_id: '${{ github.run_id }}' 129 } 130 });
Note: See TracChangeset
for help on using the changeset viewer.