Agent Skillsmercurjs/mercur › playwright-ci

playwright-ci

GitHub

提供Playwright在CI/CD环境中的最佳实践配置,涵盖GitHub Actions等主流平台集成、并行分片执行、Docker容器化运行、测试报告生成及缓存优化策略。

.agents/skills/playwright-skill/ci/SKILL.md mercurjs/mercur

Trigger Scenarios

需要为Playwright配置CI/CD流水线 优化E2E测试在持续集成中的执行速度与稳定性 解决Playwright在CI环境下的依赖或并行执行问题

Install

npx skills add mercurjs/mercur --skill playwright-ci -g -y
More Options

Non-standard path

npx skills add https://github.com/mercurjs/mercur/tree/main/.agents/skills/playwright-skill/ci -g -y

Use without installing

npx skills use mercurjs/mercur@playwright-ci

指定 Agent (Claude Code)

npx skills add mercurjs/mercur --skill playwright-ci -a claude-code -g -y

安装 repo 全部 skill

npx skills add mercurjs/mercur --all -g -y

预览 repo 内 skill

npx skills add mercurjs/mercur --list

SKILL.md

Frontmatter
{
    "name": "playwright-ci",
    "description": "Production-ready CI\/CD configurations for Playwright — GitHub Actions, GitLab CI, CircleCI, Azure DevOps, Jenkins, Docker, parallel sharding, reporting, code coverage, and global setup\/teardown."
}

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
GitLab CI ci-gitlab.md
CircleCI / Azure DevOps / Jenkins ci-other.md

Execution & Scaling

Topic Guide
Parallel execution & sharding parallel-and-sharding.md
Docker & containers docker-and-containers.md
Multi-project config projects-and-dependencies.md

Reporting & Setup

Topic Guide
Reports & artifacts reporting-and-artifacts.md
Code coverage test-coverage.md
Global setup/teardown global-setup-teardown.md

Version History

  • bbf1922 Current 2026-08-20 10:05

Same Skill Collection

.agents/skills/playwright-skill/core/SKILL.md
.agents/skills/playwright-skill/migration/SKILL.md
.agents/skills/playwright-skill/playwright-cli/SKILL.md
.agents/skills/playwright-skill/pom/SKILL.md
.agents/skills/playwright-skill/SKILL.md
.claude/skills/figma-ui/SKILL.md

Metadata

Files
0
Version
bbf1922
Hash
e5fed8f9
Indexed
2026-08-20 10:05

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-25 18:10
浙ICP备14020137号-1 $방문자$