Changeset 53597 for branches/5.8/.github/workflows/javascript-tests.yml
- Timestamp:
- 06/30/2022 04:26:30 PM (4 years ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
.github/workflows/javascript-tests.yml (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 51921,51924-51925,51937,52002,52130,52183,52233,53112,53581-53582,53592
- Property svn:mergeinfo changed
-
branches/5.8/.github/workflows/javascript-tests.yml
r51357 r53597 5 5 push: 6 6 branches: 7 - master8 7 - trunk 9 8 - '3.[89]' … … 14 13 pull_request: 15 14 branches: 16 - master17 15 - trunk 18 16 - '3.[89]' … … 45 43 # Performs the following steps: 46 44 # - Checks out the repository. 47 # - Logs debug information about the runner container.48 # - Installs NodeJS 14.45 # - Logs debug information about the GitHub Action runner. 46 # - Installs NodeJS. 49 47 # - Sets up caching for NPM. 50 48 # - Logs updated debug information. 51 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.49 # _ Installs NPM dependencies. 52 50 # - Run the WordPress QUnit tests. 53 51 # - Ensures version-controlled files are not modified or deleted. 54 # - todo: Configure Slack notifications for failing tests.55 52 test-js: 56 53 name: QUnit Tests 57 54 runs-on: ubuntu-latest 55 timeout-minutes: 20 58 56 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 59 57 60 58 steps: 61 59 - name: Checkout repository 62 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.460 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 63 61 64 62 - name: Log debug information … … 70 68 71 69 - name: Install NodeJS 72 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.570 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 73 71 with: 74 node-version: 14 75 76 - name: Cache NodeJS modules 77 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 78 env: 79 cache-name: cache-node-modules 80 with: 81 # npm cache files are stored in `~/.npm` on Linux/macOS 82 path: ~/.npm 83 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 72 node-version-file: '.nvmrc' 73 cache: npm 84 74 85 75 - name: Log debug information … … 96 86 - name: Ensure version-controlled files are not modified or deleted 97 87 run: git diff --exit-code 88 89 slack-notifications: 90 name: Slack Notifications 91 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 92 needs: [ test-js ] 93 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 94 with: 95 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }} 96 secrets: 97 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 98 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 99 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 100 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Note: See TracChangeset
for help on using the changeset viewer.