Skip to content

Commit 09fdc3f

Browse files
authored
ci: cache Playwright browser binaries (#337)
1 parent 756b671 commit 09fdc3f

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ jobs:
1212
with:
1313
bun-version: 1.1.3
1414

15+
- uses: actions/cache@v4
16+
id: playwright-cache
17+
with:
18+
path: /Users/runner/Library/Caches/ms-playwright
19+
key: ${{ runner.os }}-playwright-1.43.0
20+
1521
- name: Install dependencies
16-
run: |
17-
bun install
18-
bun playwright install --with-deps
22+
run: bun install
23+
24+
- name: Install Playwright binaries
25+
run: bun playwright install --with-deps
26+
if: steps.playwright-cache.outputs.cache-hit != 'true'
1927

2028
- name: Build library
2129
run: bun build:lib

bun.lockb

0 Bytes
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"@astrojs/svelte": "latest",
2424
"@playwright/experimental-ct-svelte": "latest",
25-
"@playwright/test": "latest",
25+
"@playwright/test": "1.43.0",
2626
"@types/bun": "latest",
2727
"@types/node": "latest",
2828
"@types/prettier": "latest",

0 commit comments

Comments
 (0)