Skip to content

Commit

Permalink
chore: npm ci for php unit tests
Browse files Browse the repository at this point in the history
Soare-Robert-Daniel committed Sep 14, 2023
1 parent 0647429 commit 1e36247
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1e36247

Please sign in to comment.