From 927f9a2c12faa7e30212355e9f0bf8a398eb8b1b Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 23 Sep 2025 14:08:05 +0800 Subject: [PATCH] chore: fix playwright installation --- .github/workflows/ci.yml | 6 ++---- tests/TESTING.md | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1dbedd..5f66c64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,10 +28,8 @@ jobs: - name: Install dependencies run: pnpm install - - name: Setup Playwright (Chromium) - uses: microsoft/playwright-github-action@v1 - with: - browsers: chromium + - name: Install Playwright + run: pnpm exec playwright install --with-deps chromium - name: Lint run: pnpm run lint diff --git a/tests/TESTING.md b/tests/TESTING.md index c40e6dd..b19a503 100644 --- a/tests/TESTING.md +++ b/tests/TESTING.md @@ -19,5 +19,5 @@ We run Vitest in browser mode using Playwright (Chromium) with `vitest-browser-v ## CI - 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.