playwright-ci-caching

Community

Cache Playwright browsers in CI to speed builds.

AuthorAaronontheweb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Cache Playwright browser binaries in CI/CD pipelines to avoid 1-2 minute downloads per build, improving PR feedback times and reliability.

Core Features & Use Cases

  • Version-aware caching: derives the Playwright version from Directory.Packages.props to form a cache key that busts automatically on upgrades.
  • OS-specific cache paths: caches browsers to the appropriate paths per OS (Linux, macOS, Windows).
  • Conditional install: only downloads binaries when a cache miss is detected, reducing CI time and flakiness.
  • CI platform support: designed for GitHub Actions and Azure DevOps pipelines in .NET projects.

Quick Start

Install or verify browsers in CI with:

  • ./build/playwright.ps1 install --with-deps
  • ./build/playwright.ps1 install chromium
  • ./build/playwright.ps1 install --dry-run

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: playwright-ci-caching
Download link: https://github.com/Aaronontheweb/dotnet-skills/archive/main.zip#playwright-ci-caching

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.