Changeset 58597 for branches/5.8/.github/workflows/javascript-tests.yml
- Timestamp:
- 06/28/2024 06:40:36 PM (11 months ago)
- Location:
- branches/5.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
- Property svn:mergeinfo changed
/trunk merged: 52179,53552,53895,56113-56114,57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/5.8/.github/workflows/javascript-tests.yml
r55517 r58597 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 Node.js. 48 # - Logs updated debug information. 49 # _ Installs npm dependencies. 50 # - Run the WordPress QUnit tests. 51 # - Ensures version-controlled files are not modified or deleted. 46 # Runs the WordPress Core JavaScript tests. 52 47 test-js: 53 48 name: QUnit Tests 54 runs-on: ubuntu-latest 55 timeout-minutes: 20 49 uses: WordPress/wordpress-develop/.github/workflows/reusable-javascript-tests.yml@trunk 50 permissions: 51 contents: read 56 52 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 57 58 steps:59 - name: Checkout repository60 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.061 62 - name: Log debug information63 run: |64 npm --version65 node --version66 git --version67 svn --version68 69 - name: Install Node.js70 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.071 with:72 node-version-file: '.nvmrc'73 cache: npm74 75 - name: Log debug information76 run: |77 npm --version78 node --version79 80 - name: Install Dependencies81 run: npm ci82 83 - name: Run QUnit tests84 run: npm run grunt qunit:compiled85 86 - name: Ensure version-controlled files are not modified or deleted87 run: git diff --exit-code88 53 89 54 slack-notifications: 90 55 name: Slack Notifications 91 56 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 57 permissions: 58 actions: read 59 contents: read 92 60 needs: [ test-js ] 93 61 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} 94 62 with: 95 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' }} 96 64 secrets: 97 65 SLACK_GHA_SUCCESS_WEBHOOK: ${{ secrets.SLACK_GHA_SUCCESS_WEBHOOK }} … … 103 71 name: Failed workflow tasks 104 72 runs-on: ubuntu-latest 105 needs: [ test-js, slack-notifications ] 73 permissions: 74 actions: write 75 needs: [ slack-notifications ] 106 76 if: | 107 77 always() && … … 110 80 github.run_attempt < 2 && 111 81 ( 112 needs.test-js.result == 'cancelled' || needs.test-js.result == 'failure' 82 contains( needs.*.result, 'cancelled' ) || 83 contains( needs.*.result, 'failure' ) 113 84 ) 114 85 115 86 steps: 116 87 - name: Dispatch workflow run 117 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.088 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 118 89 with: 119 90 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.