Playwright tests can be executed to run on your CI environments. To simplify this, we have created sample configurations for common CI providers that can be used to bootstrap your setup.
Broadly, configuration on CI involves ensuring system dependencies are in place, installing Playwright and browsers (typically with
npm install), and running tests (typically with
npm test). Windows and macOS build agents do not require any additional system dependencies. Linux build agents can require additional dependencies, depending on the Linux distribution.
The Playwright GitHub Action can be used to run Playwright tests on GitHub Actions.
We run our tests on GitHub Actions, across a matrix of 3 platforms (Windows, Linux, macOS) and 3 browsers (Chromium, Firefox, WebKit).
We have a pre-built Docker image which can either be used directly, or as a reference to update your existing Docker definitions.
For Windows or macOS agents, no additional configuration required, just install Playwright and run your tests.
For Linux agents, refer to our Docker setup to see additional dependencies that need to be installed.