Changeset 55535 for branches/4.1/.github/workflows/javascript-tests.yml
- Timestamp:
- 03/10/2023 04:31:59 PM (21 months ago)
- Location:
- branches/4.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.1
- 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.1/.github/workflows/javascript-tests.yml
r53620 r55535 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. … … 46 47 # - Installs NodeJS. 47 48 # - Logs updated debug information. 48 # _ Installs NPMdependencies.49 # _ Installs npm dependencies. 49 50 # - Run the WordPress QUnit tests. 50 51 test-js: … … 56 57 steps: 57 58 - name: Checkout repository 58 uses: actions/checkout@ 2541b1294d2704b0964813337f33b291d3f8596b # v3.0.259 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 59 60 60 61 - name: Log debug information … … 65 66 svn --version 66 67 67 - name: Install NodeJS68 uses: actions/setup-node@ eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.068 - name: Set up Node.js 69 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 69 70 with: 70 71 node-version-file: '.nvmrc' … … 94 95 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 95 96 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 97 98 failed-workflow: 99 name: Failed workflow tasks 100 runs-on: ubuntu-latest 101 needs: [ test-js, slack-notifications ] 102 if: | 103 always() && 104 github.repository == 'WordPress/wordpress-develop' && 105 github.event_name != 'pull_request' && 106 github.run_attempt < 2 && 107 ( 108 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 109 ) 110 111 steps: 112 - name: Dispatch workflow run 113 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 114 with: 115 retries: 2 116 retry-exempt-status-codes: 418 117 script: | 118 github.rest.actions.createWorkflowDispatch({ 119 owner: context.repo.owner, 120 repo: context.repo.repo, 121 workflow_id: 'failed-workflow.yml', 122 ref: 'trunk', 123 inputs: { 124 run_id: '${{ github.run_id }}' 125 } 126 });
Note: See TracChangeset
for help on using the changeset viewer.