Skip to main content
ClaudeWave
Skill276 estrellas del repoactualizado 3d ago

playwright-ci

This skill provides production-ready CI/CD configurations and patterns for Playwright test automation across GitHub Actions, GitLab CI, CircleCI, Azure DevOps, and Jenkins. Use it when setting up reliable browser testing pipelines, implementing parallel test execution with sharding, containerizing tests with Docker, configuring reporting and artifacts, or establishing shared authentication workflows across CI environments.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/testdino-hq/playwright-skill /tmp/playwright-ci && cp -r /tmp/playwright-ci/ci ~/.claude/skills/playwright-ci
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

# Playwright CI/CD

> Ship reliable tests in every pipeline — CI-specific patterns for speed, stability, and actionable reports.

**9 guides** covering CI/CD setup, parallel execution, containerized runs, reporting, and infrastructure patterns for all major CI providers.

## Golden Rules

1. **`retries: 2` in CI only** — surface flakiness in pipelines, not locally
2. **`traces: 'on-first-retry'`** — capture rich debugging artifacts without slowing every run
3. **Shard across runners** — `--shard=N/M` splits tests evenly; scale horizontally, not vertically
4. **Cache browser binaries** — `~/.cache/ms-playwright` keyed on Playwright version
5. **Upload artifacts on failure** — traces, screenshots, and HTML reports as CI artifacts
6. **Use the official Docker image** — `mcr.microsoft.com/playwright:v*` has all OS deps pre-installed
7. **Global setup for auth** — run login once in `globalSetup`, reuse `storageState` across workers
8. **Fail fast, debug later** — keep CI runs short; use trace viewer and HTML reports to investigate

## Guide Index

### CI Providers

| Provider | Guide |
|---|---|
| GitHub Actions | [ci-github-actions.md](ci-github-actions.md) |
| GitLab CI | [ci-gitlab.md](ci-gitlab.md) |
| CircleCI / Azure DevOps / Jenkins | [ci-other.md](ci-other.md) |

### Execution & Scaling

| Topic | Guide |
|---|---|
| Parallel execution & sharding | [parallel-and-sharding.md](parallel-and-sharding.md) |
| Docker & containers | [docker-and-containers.md](docker-and-containers.md) |
| Multi-project config | [projects-and-dependencies.md](projects-and-dependencies.md) |

### Reporting & Setup

| Topic | Guide |
|---|---|
| Reports & artifacts | [reporting-and-artifacts.md](reporting-and-artifacts.md) |
| Code coverage | [test-coverage.md](test-coverage.md) |
| Global setup/teardown | [global-setup-teardown.md](global-setup-teardown.md) |