ci workflow: Playwright browser cache keyed by playwright-core's browsers.json (the repo has no bun.lock, the key was empty)
This commit is contained in:
parent
b9579e2a2e
commit
54c3bbac2c
1 changed files with 4 additions and 3 deletions
|
|
@ -61,12 +61,13 @@ jobs:
|
||||||
rustup component add clippy
|
rustup component add clippy
|
||||||
bun --version && cargo --version
|
bun --version && cargo --version
|
||||||
bun install --frozen-lockfile
|
bun install --frozen-lockfile
|
||||||
# Playwright's Chromium and headless shell (~280 MB), keyed by the locked playwright version; the system
|
# Playwright's Chromium and headless shell (~280 MB), keyed by the browser builds the installed playwright-core
|
||||||
# libraries and fonts (--with-deps) are installed on every run, the job container starts clean
|
# wants (its browsers.json); the system libraries and fonts (--with-deps) are installed on every run, the job
|
||||||
|
# container starts clean
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/ms-playwright
|
path: ~/.cache/ms-playwright
|
||||||
key: playwright-${{ runner.os }}-${{ hashFiles('bun.lock') }}
|
key: playwright-${{ runner.os }}-${{ hashFiles('node_modules/playwright-core/browsers.json') }}
|
||||||
restore-keys: playwright-${{ runner.os }}-
|
restore-keys: playwright-${{ runner.os }}-
|
||||||
# the job runs as root in a container: storebound adds --no-sandbox to the Chromium it starts itself there
|
# the job runs as root in a container: storebound adds --no-sandbox to the Chromium it starts itself there
|
||||||
# (cli/shots/browser.ts sandboxArgs), Playwright's own launches already pass it
|
# (cli/shots/browser.ts sandboxArgs), Playwright's own launches already pass it
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue