From 9d78f63e565850b7e94ebc023e5b5bbe1de937a1 Mon Sep 17 00:00:00 2001 From: robonen Date: Mon, 8 Jun 2026 16:39:18 +0700 Subject: [PATCH] ci: install Playwright Chromium before running tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit vue/primitives runs vitest in browser mode (instances: chromium), so 'pnpm test' launches Playwright Chromium — which the CI runner doesn't have, failing the run after all 3320 tests pass. Add 'playwright install --with-deps chromium' before the test step in both CI and publish workflows. --- .github/workflows/ci.yaml | 5 ++++- .github/workflows/publish.yaml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f1bc8df..6689a35 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,7 +19,7 @@ jobs: - uses: actions/checkout@v6 - name: Install pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: run_install: false @@ -37,5 +37,8 @@ jobs: - name: Lint run: pnpm lint:check + - name: Install Playwright browser + run: pnpm exec playwright install --with-deps chromium + - name: Test run: pnpm test \ No newline at end of file diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a677cf1..54f368f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v5 + uses: pnpm/action-setup@v6 with: run_install: false @@ -31,6 +31,9 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + - name: Install Playwright browser + run: pnpm exec playwright install --with-deps chromium + - name: Build & Test run: pnpm build && pnpm test