Skip to content

Commit 4c86bae

Browse files
chore: improve playwright cache
1 parent 6ceda18 commit 4c86bae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ jobs:
131131
run: docker compose run --rm php bin/console doctrine:fixtures:load --no-interaction
132132
-
133133
name: Cache Playwright Binaries
134+
id: playwright-cache
134135
uses: actions/cache@v3
135136
with:
136137
path: ~/.cache/ms-playwright
@@ -153,9 +154,15 @@ jobs:
153154
working-directory: pwa
154155
run: pnpm install
155156
-
156-
name: Install Playwright Browsers
157+
name: Install Playwright Browsers with Deps
158+
if: steps.playwright-cache.outputs.cache-hit != 'true'
157159
working-directory: pwa
158160
run: pnpm exec playwright install --with-deps
161+
-
162+
name: Install Playwright Browsers
163+
if: steps.playwright-cache.outputs.cache-hit == 'true'
164+
working-directory: pwa
165+
run: pnpm exec playwright install
159166
-
160167
name: Run Playwright @read
161168
working-directory: pwa

0 commit comments

Comments
 (0)