Browsers ready in CI
Install the Playwright runtime and selected browsers on a GitHub Actions runner while keeping project setup and test execution explicit.
- Runner setup Install the runtime and selected browsers
- Explicit inputs Select the browser required by the job
- Project-owned steps Keep application setup and test execution separate
Install the runtime and selected browsers
The action installs the Playwright npm runtime and selected browser binaries. On Linux, it can also install the browser system dependencies.
setup-playwright package →Select the browser required by the job
Choose Chromium, Firefox, WebKit, a branded browser, or the complete managed set. Keep the selected target visible in the workflow.
GitHub Actions setup →- uses: playwright-php/setup-playwright@v1
with:
playwright-version: 1.62.1
browsers: chromiumKeep application setup and test execution separate
PHP setup, Composer install, application preparation, caching, the test command, and artifact upload remain explicit workflow steps.
Continuous integration →Move from the tour to working code.
Choose the explanation, recipe, or runnable example that matches what you need next.