Skip to content

Commit 7ee98e5

Browse files
fix: use pnpm exec for Playwright install in CI workflow
npx can't find playwright in a pnpm workspace — use pnpm exec with working-directory to resolve from the correct package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 877aa6f commit 7ee98e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,16 @@ jobs:
3535
run: pnpm build
3636

3737
- name: Install Playwright browsers
38-
run: npx playwright install chromium --with-deps
38+
run: pnpm exec playwright install chromium --with-deps
39+
working-directory: packages/vitest
3940

4041
- name: Start viewer for Playwright tests
4142
run: |
42-
cd packages/viewer
4343
PORT=3100 node dist/server/index.js &
4444
echo "Waiting for viewer on port 3100..."
4545
timeout 30 bash -c 'until curl -sf http://localhost:3100 > /dev/null 2>&1; do sleep 1; done'
4646
echo "Viewer is ready"
47+
working-directory: packages/viewer
4748

4849
- name: Test vitest package
4950
run: npx vitest run --config vitest.config.ci.ts

0 commit comments

Comments
 (0)