Build/Test Tools: Switch away from npx install-changed in GitHub Actions to increase the cache performance.

Using `npm ci` makes better use of the npm cache that's in use, speeding up the test runs by around 30 seconds.

See #52660


git-svn-id: https://develop.svn.wordpress.org/trunk@50446 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
John Blackbourn 2021-02-26 22:47:33 +00:00
parent 9ba7875fc8
commit 6f89bd0064
6 changed files with 6 additions and 6 deletions

View File

@ -121,7 +121,7 @@ jobs:
node --version
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Run JSHint
run: npm run grunt jshint

View File

@ -84,7 +84,7 @@ jobs:
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Build WordPress
run: npm run build

View File

@ -71,7 +71,7 @@ jobs:
node --version
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Run QUnit tests
run: npm run grunt qunit:compiled

View File

@ -133,7 +133,7 @@ jobs:
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Get composer cache directory
id: composer-cache

View File

@ -81,7 +81,7 @@ jobs:
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Docker debug information
run: |

View File

@ -67,7 +67,7 @@ jobs:
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- name: Install Dependencies
run: npx install-changed --install-command="npm ci"
run: npm ci
- name: Build WordPress
run: npm run build