Skip to content

Commit 8e592e5

Browse files
committed
fix(ci): install Playwright system deps on cache hit
When Playwright cache has exact hit, 'playwright install --with-deps' is skipped but system libraries (libwoff2dec.so etc) are not in cache. Adding 'playwright install-deps' step on cache hit ensures WebKit dependencies are always available.
1 parent 7c27c75 commit 8e592e5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ jobs:
185185
if: steps.cache-playwright.outputs.cache-hit != 'true'
186186
run: npx playwright install --with-deps
187187

188+
- name: Install Playwright system dependencies (on cache hit)
189+
if: steps.cache-playwright.outputs.cache-hit == 'true'
190+
run: npx playwright install-deps
191+
188192
- name: Cache Playwright dependencies
189193
if: steps.cache-playwright.outputs.cache-hit != 'true'
190194
uses: actions/cache@v4

0 commit comments

Comments
 (0)