chore: fix playwright installation

This commit is contained in:
Justineo
2025-09-23 14:08:05 +08:00
committed by GU Yiling
parent da4ade6ed6
commit 927f9a2c12
2 changed files with 3 additions and 5 deletions

View File

@ -28,10 +28,8 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: pnpm install run: pnpm install
- name: Setup Playwright (Chromium) - name: Install Playwright
uses: microsoft/playwright-github-action@v1 run: pnpm exec playwright install --with-deps chromium
with:
browsers: chromium
- name: Lint - name: Lint
run: pnpm run lint run: pnpm run lint

View File

@ -19,5 +19,5 @@ We run Vitest in browser mode using Playwright (Chromium) with `vitest-browser-v
## CI ## CI
- CI runs tests with coverage and uploads LCOV to Codecov (non-blocking). - CI runs tests with coverage and uploads LCOV to Codecov (non-blocking).
- Chromium is provisioned via the Playwright GitHub Action. - Chromium is installed via Playwright CLI with system deps: `pnpm exec playwright install --with-deps chromium`.
- Optional: restrict Codecov uploads to PRs and `main` via a workflow condition. - Optional: restrict Codecov uploads to PRs and `main` via a workflow condition.