We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 78f3ce2 commit f918256Copy full SHA for f918256
1 file changed
.github/workflows/playwright.yml
@@ -47,7 +47,21 @@ jobs:
47
- name: Install Playwright
48
run: |
49
npm ci
50
- npx playwright install --with-deps
+
51
+ - name: Cache Playwright browsers
52
+ id: playwright-cache
53
+ uses: actions/cache@v4
54
+ with:
55
+ path: ~/.cache/ms-playwright
56
+ key: playwright-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
57
58
+ - name: Install Playwright browsers
59
+ if: steps.playwright-cache.outputs.cache-hit != 'true'
60
+ run: npx playwright install --with-deps chromium firefox
61
62
+ - name: Install Playwright system deps
63
+ if: steps.playwright-cache.outputs.cache-hit == 'true'
64
+ run: npx playwright install-deps chromium firefox
65
66
- name: Run Playwright tests
67
env:
0 commit comments