ci: install Playwright Chromium before running tests

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.
This commit is contained in:
2026-06-08 16:39:18 +07:00
parent 67ca9252b7
commit 9d78f63e56
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -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
+4 -1
View File
@@ -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