跳到主要内容
知仓学习社ZHICANG

playwright-ci

Production-ready CI/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, report…

不碰外部(只输出文字)无严重或高危命中zebbern/claude-code-guide

它会碰到什么

扫了多少10 个文本文件,146 KB
它会碰到什么不碰外部(只输出文字)
命中总数25 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

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 imagemcr.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) |

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。