1 parent cee90ed commit c82a1c3Copy full SHA for c82a1c3
1 file changed
.github/workflows/playwright.yml
@@ -24,10 +24,20 @@ jobs:
24
- name: Install dependencies
25
run: npm ci
26
27
- - name: Setup Playwright
28
- uses: microsoft/playwright@v1
+ - name: Cache Playwright browsers
+ uses: actions/cache@v4
29
+ id: playwright-cache
30
with:
- browsers: chromium
31
+ path: ~/.cache/ms-playwright
32
+ key: playwright-chromium-${{ hashFiles('package-lock.json') }}
33
+
34
+ - name: Install Playwright browser
35
+ run: npx playwright install --with-deps chromium
36
+ if: steps.playwright-cache.outputs.cache-hit != 'true'
37
38
+ - name: Install Playwright system deps only
39
+ run: npx playwright install-deps chromium
40
+ if: steps.playwright-cache.outputs.cache-hit == 'true'
41
42
- name: Build app
43
run: npm run build
0 commit comments