Changeset 50309 for branches/4.8/.github/workflows/javascript-tests.yml
- Timestamp:
- 02/12/2021 07:34:39 PM (4 years ago)
- Location:
- branches/4.8
- Files:
-
- 1 added
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/trunk merged: 49162,49168-49169,49175,49204,49227-49228,49244,49369,49371,49548,49781-49784,49786,49836,49938,50268,50285,50298
- Property svn:mergeinfo changed
-
branches/4.8/.github/workflows/javascript-tests.yml
r49162 r50309 5 5 branches: 6 6 - master 7 - '*.*' 7 # JavaScript testing was introduced in WordPress 3.8. 8 - '3.[89]' 9 - '[4-9].[0-9]' 10 tags: 11 - '3.[89]*' 12 - '[4-9].[0-9]*' 8 13 pull_request: 9 14 … … 12 17 # 13 18 # Performs the following steps: 14 # - Cancels all previous workflow runs that have not completed.19 # - Cancels all previous workflow runs for pull requests that have not completed. 15 20 # - Checks out the repository. 16 21 # - Logs debug information about the runner container. 17 # - Installs NodeJS 1 2 (todo: install the version of NPM specified in the `.nvmrc` file to support older branches)22 # - Installs NodeJS 14. 18 23 # - Sets up caching for NPM. 19 24 # - Logs updated debug information. 20 # _ Installs NPM dependencies .25 # _ Installs NPM dependencies using install-changed to hash the `package.json` file. 21 26 # - Run the WordPress QUnit tests. 22 27 # - todo: Configure Slack notifications for failing tests. … … 24 29 name: QUnit Tests 25 30 runs-on: ubuntu-latest 31 if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }} 32 26 33 steps: 27 - name: Cancel previous runs of this workflow 34 - name: Cancel previous runs of this workflow (pull requests only) 35 if: ${{ github.event_name == 'pull_request' }} 28 36 uses: styfle/cancel-workflow-action@0.5.0 29 37 with: … … 43 51 uses: actions/setup-node@v1 44 52 with: 45 node-version: 1 253 node-version: 14 46 54 47 55 - name: Cache NodeJS modules … … 62 70 63 71 - name: Install Dependencies 64 run: np m ci72 run: npx install-changed --install-command="npm ci" 65 73 66 74 - name: Run QUnit tests
Note: See TracChangeset
for help on using the changeset viewer.