Skip to content

Configure Playwright to use system browsers in CI#150

Open
mcclowes wants to merge 1 commit intomainfrom
claude/fix-pdf-build-J537w
Open

Configure Playwright to use system browsers in CI#150
mcclowes wants to merge 1 commit intomainfrom
claude/fix-pdf-build-J537w

Conversation

@mcclowes
Copy link
Owner

Summary

This change configures Playwright to use system-installed browsers instead of downloading its own browser binaries in CI environments, reducing build time and disk usage.

Key Changes

  • Added PLAYWRIGHT_BROWSERS_PATH: "0" environment variable to both the test and build CI jobs
  • Applied to the "Install Playwright Browsers" step in two workflow jobs:
    • test job (line 73-74)
    • build job (line 105-106)

Implementation Details

Setting PLAYWRIGHT_BROWSERS_PATH to "0" instructs Playwright to skip downloading and caching browser binaries, instead relying on browsers already available in the CI environment (installed via --with-deps flag). This optimization:

  • Reduces CI pipeline execution time
  • Decreases storage requirements
  • Leverages system-provided browser dependencies that are already present in the runner environment

https://claude.ai/code/session_0164HDBQxFNVtGsFmFTUP5hG

Set PLAYWRIGHT_BROWSERS_PATH=0 during browser installation to ensure
browsers are installed in the same project-local location where the
code expects to find them at runtime.
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
cv Ready Ready Preview, Comment Jan 27, 2026 2:36pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants