ci: cache playwright browsers across runs; drop no-op save step

This commit is contained in:
2026-09-19 07:53:22 +00:00
parent e694011302
commit 35493f92f0
2 changed files with 11 additions and 8 deletions
+10 -8
View File
@@ -84,14 +84,7 @@ jobs:
done
[ "$ok" = "1" ] || { echo "::error::dependency install failed after 3 attempts" >&2; exit 1; }
- name: Save deps cache
uses: actions/cache@v4
continue-on-error: true
with:
path: |
node_modules
$HOME/.bun/install/cache
key: ${{ runner.os }}-deps-bun-${{ hashFiles('bun.lock') }}
# No explicit save step: caches marked by the restore steps are uploaded automatically at job end.
- name: Build
run: npm run build
@@ -102,6 +95,15 @@ jobs:
# Browsers run locally in CI (PW_REMOTE_BROWSER=0 below): the shared remote browser
# server at 192.168.1.4 cannot reach a stack inside dind, and local chromium keeps
# the job self-contained.
# Browser binaries (~187 MiB) cached across runs: the runner's uplink is flaky and
# cdn.playwright.dev downloads time out mid-transfer; once seeded, installs skip the download.
- name: Restore browser cache
uses: actions/cache@v4
continue-on-error: true
with:
path: $HOME/.cache/ms-playwright
key: ${{ runner.os }}-pw-browsers-${{ hashFiles('package.json') }}
- name: Install browsers (local)
run: npx playwright install --with-deps chromium