Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Jun 14, 2024
1 parent 4bdde6f commit 6acff38
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,20 +37,14 @@ jobs:
run: ls -R
working-directory: ${{ github.event.repository.name }}

- name: Cache node_modules
id: cache-node-modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
- name: Setup node and npm cache
uses: actions/setup-node@v4
with:
path: |
node_modules
~/.cache
~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm install
- name: Install Node dependencies
run: npm ci --no-optional

- name: Set the core version and plugins config
run: ./tests/bin/set-wp-config.js --core=${{ matrix.core.version }} --plugins=./${{ github.event.repository.name }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup node v16 and npm cache
- name: Setup node and npm cache
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
Expand Down

0 comments on commit 6acff38

Please sign in to comment.