Skip to content

Commit e4a7606

Browse files
committed
fix(ci): install Playwright system deps on browser cache hit
The Playwright cache only covers ~/.cache/ms-playwright, so the OS packages installed by --with-deps were missing whenever the browser cache hit and the install step was skipped.
1 parent 780becb commit e4a7606

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ jobs:
6363
- name: Install Playwright browsers
6464
if: steps.cache-playwright-browsers.outputs.cache-hit != 'true'
6565
run: pnpm --filter plugins-storybook exec playwright install --with-deps chromium
66+
- name: Install Playwright system dependencies
67+
if: steps.cache-playwright-browsers.outputs.cache-hit == 'true'
68+
run: pnpm --filter plugins-storybook exec playwright install-deps chromium
6669
- run: pnpm test:browser
6770
- uses: actions/upload-artifact@v7
6871
if: failure()

0 commit comments

Comments
 (0)