Changeset 55482 for branches/6.0/.github/workflows/javascript-tests.yml
- Timestamp:
- 03/07/2023 07:36:29 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/.github/workflows/javascript-tests.yml
r53595 r55482 19 19 # Any change to a JavaScript file should run tests. 20 20 - '**.js' 21 # These files configure NPM. Changes could affect the outcome.21 # These files configure npm. Changes could affect the outcome. 22 22 - 'package*.json' 23 23 # This file configures ESLint. Changes could affect the outcome. … … 43 43 # Performs the following steps: 44 44 # - Checks out the repository. 45 # - Sets up Node.js. 45 46 # - Logs debug information about the GitHub Action runner. 46 # - Installs NodeJS. 47 # - Logs updated debug information. 48 # _ Installs NPM dependencies. 47 # - Installs npm dependencies. 49 48 # - Run the WordPress QUnit tests. 50 49 # - Ensures version-controlled files are not modified or deleted. … … 57 56 steps: 58 57 - name: Checkout repository 59 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 58 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 59 60 - name: Set up Node.js 61 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 62 with: 63 node-version-file: '.nvmrc' 64 cache: npm 60 65 61 66 - name: Log debug information … … 66 71 svn --version 67 72 68 - name: Install NodeJS 69 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 70 with: 71 node-version-file: '.nvmrc' 72 cache: npm 73 74 - name: Log debug information 75 run: | 76 npm --version 77 node --version 78 79 - name: Install Dependencies 73 - name: Install npm Dependencies 80 74 run: npm ci 81 75 … … 98 92 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 99 93 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }} 94 95 failed-workflow: 96 name: Failed workflow tasks 97 runs-on: ubuntu-latest 98 needs: [ test-js, slack-notifications ] 99 if: | 100 always() && 101 github.repository == 'WordPress/wordpress-develop' && 102 github.event_name != 'pull_request' && 103 github.run_attempt < 2 && 104 ( 105 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 106 ) 107 108 steps: 109 - name: Dispatch workflow run 110 uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0 111 with: 112 retries: 2 113 retry-exempt-status-codes: 418 114 script: | 115 github.rest.actions.createWorkflowDispatch({ 116 owner: context.repo.owner, 117 repo: context.repo.repo, 118 workflow_id: 'failed-workflow.yml', 119 ref: 'trunk', 120 inputs: { 121 run_id: '${{ github.run_id }}' 122 } 123 });
Note: See TracChangeset
for help on using the changeset viewer.