Skip to content

Commit

Permalink
ci: cache Playwright browser binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Apr 9, 2024
1 parent 756b671 commit fc6c598
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,19 @@ jobs:
with:
bun-version: 1.1.3

- name: Cache Playwright binaries
uses: actions/cache@v4
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-1.43.0

- name: Install dependencies
run: |
bun install
bun playwright install --with-deps
run: bun install

- name: Install Playwright binaries
run: bun playwright install --with-deps
if: steps.playwright-cache.outputs.cache-hit != 'true'

- name: Build library
run: bun build:lib
Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"devDependencies": {
"@astrojs/svelte": "latest",
"@playwright/experimental-ct-svelte": "latest",
"@playwright/test": "latest",
"@playwright/test": "1.43.0",
"@types/bun": "latest",
"@types/node": "latest",
"@types/prettier": "latest",
Expand Down

0 comments on commit fc6c598

Please sign in to comment.