Changeset 58636 for branches/4.9/.github/workflows/javascript-tests.yml
- Timestamp:
- 07/03/2024 02:28:46 PM (3 months ago)
- Location:
- branches/4.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.9
- Property svn:mergeinfo changed
/trunk merged: 51673,53552,56464,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/4.9/.github/workflows/javascript-tests.yml
r55527 r58636 39 39 cancel-in-progress: true 40 40 41 # Disable permissions for all available scopes by default. 42 # Any needed permissions should be configured at the job level. 43 permissions: {} 44 41 45 jobs: 42 # Runs the QUnit tests for WordPress. 43 # 44 # Performs the following steps: 45 # - Checks out the repository. 46 # - Logs debug information about the GitHub Action runner. 47 # - Installs NodeJS. 48 # - Logs updated debug information. 49 # _ Installs npm dependencies. 50 # - Run the WordPress QUnit tests. 46 # Runs the WordPress Core JavaScript tests. 51 47 test-js: 52 48 name: QUnit Tests 53 runs-on: ubuntu-latest 54 timeout-minutes: 20 49 uses: WordPress/wordpress-develop/.github/workflows/reusable-javascript-tests.yml@trunk 50 permissions: 51 contents: read 55 52 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 56 57 steps:58 - name: Checkout repository59 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.060 61 - name: Log debug information62 run: |63 npm --version64 node --version65 git --version66 svn --version67 68 - name: Set up Node.js69 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.070 with:71 node-version-file: '.nvmrc'72 cache: npm73 74 - name: Log debug information75 run: |76 npm --version77 node --version78 79 - name: Install Dependencies80 run: npm ci81 82 - name: Run QUnit tests83 run: npm run grunt qunit:compiled84 53 85 54 slack-notifications: 86 55 name: Slack Notifications 87 56 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 57 permissions: 58 actions: read 59 contents: read 88 60 needs: [ test-js ] 89 61 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 90 62 with: 91 calling_status: ${{ needs.test-js.result == 'success' && 'success' || needs.test-js.result == 'cancelled' && 'cancelled' || 'failure' }}63 calling_status: ${{ contains( needs.*.result, 'cancelled' ) && 'cancelled' || contains( needs.*.result, 'failure' ) && 'failure' || 'success' }} 92 64 secrets: 93 65 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} … … 99 71 name: Failed workflow tasks 100 72 runs-on: ubuntu-latest 101 needs: [ test-js, slack-notifications ] 73 permissions: 74 actions: write 75 needs: [ slack-notifications ] 102 76 if: | 103 77 always() && … … 106 80 github.run_attempt < 2 && 107 81 ( 108 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 82 contains( needs.*.result, 'cancelled' ) || 83 contains( needs.*.result, 'failure' ) 109 84 ) 110 85 111 86 steps: 112 87 - name: Dispatch workflow run 113 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.088 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 114 89 with: 115 90 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.