$npx -y skills add testdino-hq/playwright-skill --skill ciProduction-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup/teardown.
| 1 | # Playwright CI/CD |
| 2 | |
| 3 | > Ship reliable tests in every pipeline — CI-specific patterns for speed, stability, and actionable reports. |
| 4 | |
| 5 | **9 guides** covering CI/CD setup, parallel execution, containerized runs, reporting, and infrastructure patterns for all major CI providers. |
| 6 | |
| 7 | ## Golden Rules |
| 8 | |
| 9 | 1. **`retries: 2` in CI only** — surface flakiness in pipelines, not locally |
| 10 | 2. **`traces: 'on-first-retry'`** — capture rich debugging artifacts without slowing every run |
| 11 | 3. **Shard across runners** — `--shard=N/M` splits tests evenly; scale horizontally, not vertically |
| 12 | 4. **Cache browser binaries** — `~/.cache/ms-playwright` keyed on Playwright version |
| 13 | 5. **Upload artifacts on failure** — traces, screenshots, and HTML reports as CI artifacts |
| 14 | 6. **Use the official Docker image** — `mcr.microsoft.com/playwright:v*` has all OS deps pre-installed |
| 15 | 7. **Global setup for auth** — run login once in `globalSetup`, reuse `storageState` across workers |
| 16 | 8. **Fail fast, debug later** — keep CI runs short; use trace viewer and HTML reports to investigate |
| 17 | |
| 18 | ## Guide Index |
| 19 | |
| 20 | ### CI Providers |
| 21 | |
| 22 | | Provider | Guide | |
| 23 | |---|---| |
| 24 | | GitHub Actions | [ci-github-actions.md](ci-github-actions.md) | |
| 25 | | GitLab CI | [ci-gitlab.md](ci-gitlab.md) | |
| 26 | | CircleCI / Azure DevOps / Jenkins | [ci-other.md](ci-other.md) | |
| 27 | |
| 28 | ### Execution & Scaling |
| 29 | |
| 30 | | Topic | Guide | |
| 31 | |---|---| |
| 32 | | Parallel execution & sharding | [parallel-and-sharding.md](parallel-and-sharding.md) | |
| 33 | | Docker & containers | [docker-and-containers.md](docker-and-containers.md) | |
| 34 | | Multi-project config | [projects-and-dependencies.md](projects-and-dependencies.md) | |
| 35 | |
| 36 | ### Reporting & Setup |
| 37 | |
| 38 | | Topic | Guide | |
| 39 | |---|---| |
| 40 | | Reports & artifacts | [reporting-and-artifacts.md](reporting-and-artifacts.md) | |
| 41 | | Code coverage | [test-coverage.md](test-coverage.md) | |
| 42 | | Global setup/teardown | [global-setup-teardown.md](global-setup-teardown.md) | |