Changeset 58357 for branches/6.0/.github/workflows/javascript-tests.yml
- Timestamp:
- 06/06/2024 03:27:31 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.0/.github/workflows/javascript-tests.yml
r55482 r58357 9 9 - '[4-9].[0-9]' 10 10 tags: 11 - '3.[89]*' 12 - '[4-9].[0-9]*' 11 - '[0-9]+.[0-9]' 12 - '[0-9]+.[0-9].[0-9]+' 13 - '!3.7.[0-9]+' 13 14 pull_request: 14 15 branches: … … 38 39 cancel-in-progress: true 39 40 41 # Disable permissions for all available scopes by default. 42 # Any needed permissions should be configured at the job level. 43 permissions: {} 44 40 45 jobs: 41 46 # Runs the QUnit tests for WordPress. 42 #43 # Performs the following steps:44 # - Checks out the repository.45 # - Sets up Node.js.46 # - Logs debug information about the GitHub Action runner.47 # - Installs npm dependencies.48 # - Run the WordPress QUnit tests.49 # - Ensures version-controlled files are not modified or deleted.50 47 test-js: 51 48 name: QUnit Tests 52 runs-on: ubuntu-latest 53 timeout-minutes: 20 49 uses: WordPress/wordpress-develop/.github/workflows/reusable-javascript-tests.yml@trunk 50 permissions: 51 contents: read 54 52 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 55 56 steps:57 - name: Checkout repository58 uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.059 60 - name: Set up Node.js61 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.062 with:63 node-version-file: '.nvmrc'64 cache: npm65 66 - name: Log debug information67 run: |68 npm --version69 node --version70 git --version71 svn --version72 73 - name: Install npm Dependencies74 run: npm ci75 76 - name: Run QUnit tests77 run: npm run grunt qunit:compiled78 79 - name: Ensure version-controlled files are not modified or deleted80 run: git diff --exit-code81 53 82 54 slack-notifications: 83 55 name: Slack Notifications 84 56 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 57 permissions: 58 actions: read 59 contents: read 85 60 needs: [ test-js ] 86 61 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 96 71 name: Failed workflow tasks 97 72 runs-on: ubuntu-latest 73 permissions: 74 actions: write 98 75 needs: [ test-js, slack-notifications ] 99 76 if: | … … 108 85 steps: 109 86 - name: Dispatch workflow run 110 uses: actions/github-script@ 98814c53be79b1d30f795b907e553d8679345975 # v6.4.087 uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 111 88 with: 112 89 retries: 2
Note: See TracChangeset
for help on using the changeset viewer.