From 1e3624792f1adfe514c45f2a85af6b54e6ba8e6f Mon Sep 17 00:00:00 2001 From: "Soare Robert Daniel (Mac 2023)" Date: Thu, 14 Sep 2023 16:20:24 +0300 Subject: [PATCH] chore: npm ci for php unit tests --- .github/workflows/test-php.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index c8aceb11d..292523802 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -130,6 +130,19 @@ jobs: run: | printf "{\"key\":\"${{ secrets.OTTER_PRO_LICENSE }}\"}" > license.json + # setup the node cache (node_modules) with github actions cache + - name: Cache Node - npm + uses: actions/cache@v1 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node-cache- + + - name: npm ci + run: | + npm ci + - name: Setup WP Env run: | npm run test:unit:php:setup