Skip to content

Commit 8d3868f

Browse files
author
Guilherme Gonçalves
committed
test caching playwright
1 parent 7d5206a commit 8d3868f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ jobs:
2525
run: npm ci
2626
- name: Build
2727
run: npm run build --if-present
28+
- name: Cache unit tests dependencies
29+
- uses: actions/cache@v3
30+
id: playwright-cache
31+
with:
32+
path: |
33+
~/.cache/ms-playwright
34+
key: ${{ runner.os }}-playwright-${{ hashFiles('**/package-lock.json') }}
2835
- name: Install unit tests dependencies
2936
run: npm run pre-test:ci
37+
if: steps.playwright-cache.outputs.cache-hit != 'true'
3038
- name: Unit tests
3139
run: npm run test:ci

0 commit comments

Comments
 (0)