Changeset 53600 for branches/5.5/.github/workflows/javascript-tests.yml
- Timestamp:
- 06/30/2022 04:37:20 PM (2 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
- Property svn:mergeinfo changed
/trunk merged: 50704,50796,50930,51341,51355,51498,51511,51535,51921,51924-51925,51937,52002,52130,52183,52233,53112,53581-53582,53592
- Property svn:mergeinfo changed
-
branches/5.5/.github/workflows/javascript-tests.yml
r50603 r53600 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]' … … 33 31 workflow_dispatch: 34 32 33 # Cancels all previous workflow runs for pull requests that have not completed. 34 concurrency: 35 # The concurrency group contains the workflow name and the branch name for pull requests 36 # or the commit hash for any other events. 37 group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} 38 cancel-in-progress: true 39 35 40 jobs: 36 41 # Runs the QUnit tests for WordPress. 37 42 # 38 43 # Performs the following steps: 39 # - Cancels all previous workflow runs for pull requests that have not completed.40 44 # - Checks out the repository. 41 # - Logs debug information about the runner container. 42 # - Installs NodeJS 14. 43 # - Sets up caching for NPM. 45 # - Logs debug information about the GitHub Action runner. 46 # - Installs NodeJS. 44 47 # - Logs updated debug information. 45 # _ Installs NPM dependencies using install-changed to hash the `package.json` file.48 # _ Installs NPM dependencies. 46 49 # - Run the WordPress QUnit tests. 47 # - todo: Configure Slack notifications for failing tests.48 50 test-js: 49 51 name: QUnit Tests 50 52 runs-on: ubuntu-latest 53 timeout-minutes: 20 51 54 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 52 55 53 56 steps: 54 - name: Cancel previous runs of this workflow (pull requests only)55 if: ${{ github.event_name == 'pull_request' }}56 uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.057 58 57 - name: Checkout repository 59 uses: actions/checkout@ 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.458 uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 60 59 61 60 - name: Log debug information … … 67 66 68 67 - name: Install NodeJS 69 uses: actions/setup-node@ 46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.568 uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0 70 69 with: 71 node-version: 14 72 73 - name: Cache NodeJS modules 74 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 75 env: 76 cache-name: cache-node-modules 77 with: 78 # npm cache files are stored in `~/.npm` on Linux/macOS 79 path: ~/.npm 80 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 70 node-version-file: '.nvmrc' 71 cache: npm 81 72 82 73 - name: Log debug information … … 90 81 - name: Run QUnit tests 91 82 run: npm run grunt qunit:compiled 83 84 slack-notifications: 85 name: Slack Notifications 86 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 87 needs: [ test-js ] 88 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 89 with: 90 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }} 91 secrets: 92 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} 93 SLACK_GHA_CANCELLED_WEBHOOK: ${{ secrets.SLACK_GHA_CANCELLED_WEBHOOK }} 94 SLACK_GHA_FIXED_WEBHOOK: ${{ secrets.SLACK_GHA_FIXED_WEBHOOK }} 95 SLACK_GHA_FAILURE_WEBHOOK: ${{ secrets.SLACK_GHA_FAILURE_WEBHOOK }}
Note: See TracChangeset
for help on using the changeset viewer.