Skip to content

Commit e2cee1c

Browse files
committed
playwright caching
1 parent 28331a9 commit e2cee1c

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

.github/workflows/tests.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,14 @@ jobs:
2626
node-version-file: '.nvmrc'
2727
- uses: actions/cache@v4
2828
with:
29-
path: ~/.npm
30-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
29+
path: |
30+
~/.npm
31+
~/.cache/ms-playwright
32+
key: ${{ runner.os }}-node-playwright-${{ hashFiles('**/package-lock.json') }}
3133
restore-keys: |
32-
${{ runner.os }}-node-
34+
${{ runner.os }}-node-playwright-
35+
${{ runner.os }}-node-
36+
3337
- run: npm ci
3438
- run: npm run build
3539
- run: npm run lint
@@ -48,10 +52,14 @@ jobs:
4852
node-version-file: '.nvmrc'
4953
- uses: actions/cache@v4
5054
with:
51-
path: ~/.npm
52-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
53-
restore-keys: |
54-
${{ runner.os }}-node-
55+
path: |
56+
~/.npm
57+
~/.cache/ms-playwright
58+
key: ${{ runner.os }}-node-playwright-${{ hashFiles('**/package-lock.json') }}
59+
restore-keys: |
60+
${{ runner.os }}-node-playwright-
61+
${{ runner.os }}-node-
62+
5563
- name: Install dependencies
5664
run: |
5765
npm install

0 commit comments

Comments
 (0)