Changeset 50584 for branches/5.7/.github/workflows/javascript-tests.yml
- Timestamp:
- 03/25/2021 07:59:44 PM (4 years ago)
- Location:
- branches/5.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.7
- Property svn:mergeinfo changed
/trunk merged: 50432,50435-50436,50479,50485-50487,50545,50579
- Property svn:mergeinfo changed
-
branches/5.7/.github/workflows/javascript-tests.yml
r50387 r50584 2 2 3 3 on: 4 # JavaScript testing was introduced in WordPress 3.8. 4 5 push: 5 6 branches: 6 7 - master 7 # JavaScript testing was introduced in WordPress 3.8.8 - trunk 8 9 - '3.[89]' 9 10 - '[4-9].[0-9]' … … 12 13 - '[4-9].[0-9]*' 13 14 pull_request: 15 branches: 16 - master 17 - trunk 18 - '3.[89]' 19 - '[4-9].[0-9]' 20 paths: 21 # Any change to a JavaScript file should run tests. 22 - '**.js' 23 # These files configure NPM. Changes could affect the outcome. 24 - 'package*.json' 25 # This file configures ESLint. Changes could affect the outcome. 26 - '.eslintignore' 27 # This file configures JSHint. Changes could affect the outcome. 28 - '.jshintrc' 29 # Any change to the QUnit directory should run tests. 30 - 'tests/qunit/**' 31 # Changes to workflow files should always verify all workflows are successful. 32 - '.github/workflows/*.yml' 14 33 15 34 jobs: … … 34 53 - name: Cancel previous runs of this workflow (pull requests only) 35 54 if: ${{ github.event_name == 'pull_request' }} 36 uses: styfle/cancel-workflow-action@0.8.0 37 with: 38 access_token: ${{ github.token }} 55 uses: styfle/cancel-workflow-action@3d86a7cc43670094ac248017207be0295edbc31d # v0.8.0 39 56 40 57 - name: Checkout repository 41 uses: actions/checkout@ v258 uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 42 59 43 60 - name: Log debug information … … 49 66 50 67 - name: Install NodeJS 51 uses: actions/setup-node@ v268 uses: actions/setup-node@46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea # v2.1.5 52 69 with: 53 70 node-version: 14 54 71 55 72 - name: Cache NodeJS modules 56 uses: actions/cache@ v273 uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6 # v2.1.4 57 74 env: 58 75 cache-name: cache-node-modules … … 61 78 path: ~/.npm 62 79 key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} 63 restore-keys: |64 ${{ runner.os }}-npm-65 80 66 81 - name: Log debug information … … 70 85 71 86 - name: Install Dependencies 72 run: np x install-changed --install-command="npm ci"87 run: npm ci 73 88 74 89 - name: Run QUnit tests
Note: See TracChangeset
for help on using the changeset viewer.