Skip to content

Commit 6ebade7

Browse files
authored
fix: Adds step to check for cache hit (#656)
This change updates the browser install step, adding a line that only installs browsers if the cache is not hit. This should greatly speed up the test process for the majority of runs.
1 parent 8a190ec commit 6ebade7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎.github/workflows/playwright.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
${{ runner.os }}-node-
7272
7373
- name: Cache Playwright browsers
74+
id: playwright-cache
7475
uses: actions/cache@v4
7576
with:
7677
path: ~/.cache/ms-playwright # Default Playwright cache path
@@ -85,6 +86,7 @@ jobs:
8586
run: npm install
8687

8788
- name: Install Playwright Browsers
89+
if: steps.playwright-cache.outputs.cache-hit != 'true'
8890
run: npx playwright install --with-deps
8991

9092
- name: Build Changed Workspaces

0 commit comments

Comments
 (0)