Skip to content

Commit c243eae

Browse files
authored
fix: Adds browsers path (#631)
From my compulsory collaborator: the PLAYWRIGHT_BROWSERS_PATH environment variable tells Playwright where to look for existing browsers. By setting this variable to match your cache path, you ensure that Playwright checks the cache before attempting a download.
1 parent 87aea8a commit c243eae

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
@@ -77,6 +77,8 @@ jobs:
7777
restore-keys: |
7878
${{ runner.os }}-playwright-${{ hashFiles('package-lock.json') }}- # Fallback for lock file changes
7979
${{ runner.os }}-playwright- # Broader fallback
80+
env:
81+
PLAYWRIGHT_BROWSERS_PATH: ~/.cache/ms-playwright
8082

8183
- name: Install dependencies
8284
run: npm install

0 commit comments

Comments
 (0)