Changeset 58302 for branches/6.2/.github/workflows/javascript-tests.yml
- Timestamp:
- 06/03/2024 05:36:35 PM (3 months ago)
- Location:
- branches/6.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/6.2
- Property svn:mergeinfo changed
/trunk merged: 57124-57125,57249,57918,58157
- Property svn:mergeinfo changed
-
branches/6.2/.github/workflows/javascript-tests.yml
r55152 r58302 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 46 # Runs the QUnit tests for WordPress. 43 #44 # Performs the following steps:45 # - Checks out the repository.46 # - Sets up Node.js.47 # - Logs debug information about the GitHub Action runner.48 # - Installs npm dependencies.49 # - Run the WordPress QUnit tests.50 # - Ensures version-controlled files are not modified or deleted.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: Set up Node.js62 uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.063 with:64 node-version-file: '.nvmrc'65 cache: npm66 67 - name: Log debug information68 run: |69 npm --version70 node --version71 git --version72 svn --version73 74 - name: Install npm Dependencies75 run: npm ci76 77 - name: Run QUnit tests78 run: npm run grunt qunit:compiled79 80 - name: Ensure version-controlled files are not modified or deleted81 run: git diff --exit-code82 53 83 54 slack-notifications: 84 55 name: Slack Notifications 85 56 uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk 57 permissions: 58 actions: read 59 contents: read 86 60 needs: [ test-js ] 87 61 if: ${{ github.repository == 'WordPress/wordpress-develop' && github.event_name != 'pull_request' && always() }} … … 97 71 name: Failed workflow tasks 98 72 runs-on: ubuntu-latest 73 permissions: 74 actions: write 99 75 needs: [ test-js, slack-notifications ] 100 76 if: |
Note: See TracChangeset
for help on using the changeset viewer.