Skip to content

Commit 1a0b091

Browse files
pRizzclaude
andcommitted
fix: install Playwright browsers from lockfile-pinned version in CI
bunx always downloads a fresh playwright package from npm, ignoring node_modules. npx couldn't find the binary either because bun's hoisting layout differs from npm's. Fix by invoking the local binary directly from packages/app/node_modules/.bin/playwright, which is the lockfile-pinned @playwright/test@1.57.0 and downloads the correct browser versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c0ab11 commit 1a0b091

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,9 +340,13 @@ jobs:
340340
key: ${{ runner.os }}-playwright-${{ hashFiles('packages/opencode/packages/app/package.json') }}
341341
restore-keys: ${{ runner.os }}-playwright-
342342

343+
- name: Install opencode dependencies
344+
working-directory: packages/opencode
345+
run: bun install --frozen-lockfile --ignore-scripts
346+
343347
- name: Install Playwright browsers
344348
working-directory: packages/opencode/packages/app
345-
run: bunx playwright install --with-deps
349+
run: ./node_modules/.bin/playwright install --with-deps
346350
env:
347351
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/.cache/ms-playwright
348352

0 commit comments

Comments
 (0)