Skip to content

Commit

Permalink
NEXT-33446 - disable node_modules caching in certian jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Feb 6, 2024
1 parent 6ed6160 commit a7f2fda
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ jobs:
with:
node-version: '20'

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: unit
Expand All @@ -79,15 +79,15 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4

- name: Retrieve the cached "node_modules" directory (if present)
uses: actions/cache@v3
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
# - name: Retrieve the cached "node_modules" directory (if present)
# uses: actions/cache@v3
# id: node-cache
# with:
# path: node_modules
# key: node-modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install dependencies (if the cached directory was not found)
if: steps.node-cache.outputs.cache-hit != 'true'
# if: steps.node-cache.outputs.cache-hit != 'true'
run: npm ci

- name: Install Playwright
Expand Down

0 comments on commit a7f2fda

Please sign in to comment.