From 6f89bd0064bcf32e9990309e35bb2ae293e7a59b Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Fri, 26 Feb 2021 22:47:33 +0000 Subject: [PATCH] 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 --- .github/workflows/coding-standards.yml | 2 +- .github/workflows/end-to-end-tests.yml | 2 +- .github/workflows/javascript-tests.yml | 2 +- .github/workflows/phpunit-tests.yml | 2 +- .github/workflows/test-coverage.yml | 2 +- .github/workflows/verify-npm-on-windows.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml index 4c88c9e53c..d90897a2b0 100644 --- a/.github/workflows/coding-standards.yml +++ b/.github/workflows/coding-standards.yml @@ -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 diff --git a/.github/workflows/end-to-end-tests.yml b/.github/workflows/end-to-end-tests.yml index 40f3fc46d0..1f98617c9d 100644 --- a/.github/workflows/end-to-end-tests.yml +++ b/.github/workflows/end-to-end-tests.yml @@ -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 diff --git a/.github/workflows/javascript-tests.yml b/.github/workflows/javascript-tests.yml index 8e44a4455f..cd4688edd8 100644 --- a/.github/workflows/javascript-tests.yml +++ b/.github/workflows/javascript-tests.yml @@ -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 diff --git a/.github/workflows/phpunit-tests.yml b/.github/workflows/phpunit-tests.yml index 1fc40c8332..644175abdf 100644 --- a/.github/workflows/phpunit-tests.yml +++ b/.github/workflows/phpunit-tests.yml @@ -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 diff --git a/.github/workflows/test-coverage.yml b/.github/workflows/test-coverage.yml index 79c453429f..839b59269e 100644 --- a/.github/workflows/test-coverage.yml +++ b/.github/workflows/test-coverage.yml @@ -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: | diff --git a/.github/workflows/verify-npm-on-windows.yml b/.github/workflows/verify-npm-on-windows.yml index c22e3596c0..01a070ba4f 100644 --- a/.github/workflows/verify-npm-on-windows.yml +++ b/.github/workflows/verify-npm-on-windows.yml @@ -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