playwright-ci-caching

Cache Playwright browser binaries in GitHub Actions and Azure DevOps pipelines.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/MudraMartin/dotlight-skillset --skill playwright-ci-caching-mudramartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-ci-caching
Source: https://github.com/MudraMartin/dotlight-skillset/tree/main/dotnet/playwright-ci-caching
Command: npx skills add https://github.com/MudraMartin/dotlight-skillset --skill playwright-ci-caching-mudramartin

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the issue of slow CI/CD build times caused by Playwright downloading browsers every run, offering a caching solution to speed up builds.

Core Features & Use Cases

  • Caching Browsers: Saves Playwright browser binaries in GitHub Actions / Azure DevOps for quick retrieval on subsequent builds.
  • Conditional Download: Ensures browsers are only downloaded if the cache is empty, reducing download time and network usage.
  • Automatic Cache Invalidation: Invalidate the cache automatically when Playwright version changes, ensuring compatibility.
  • OS-Specific Paths: Caches browsers based on the operating system to handle path variations.

Quick Start

Cache Playwright browsers in your GitHub Actions or Azure DevOps CI/CD pipeline by adding the appropriate cache steps to your workflow.

Frequently Asked Questions about playwright-ci-caching

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cache Playwright browsers in GitHub Actions to speed up CI/CD builds?

To cache Playwright browsers in GitHub Actions, you add specific cache steps to your workflow that save browser binaries for quick retrieval on subsequent runs. This reduces build times by avoiding redundant browser downloads.

Why does my CI/CD pipeline download Playwright browsers every single run, and how can I stop it?

Your pipeline downloads Playwright browsers every run because it lacks a caching mechanism. Implementing a caching step ensures browsers are only downloaded if the cache is empty, significantly reducing network usage and build time.

How does Playwright browser cache invalidation work when the version changes?

Playwright browser cache invalidation happens automatically when the Playwright version changes. This ensures compatibility by forcing a fresh download of the correct browser binaries only when an update is detected.

Can I use Playwright browser caching with Azure DevOps pipelines?

Yes, you can cache Playwright browsers in Azure DevOps. The caching solution supports both GitHub Actions and Azure DevOps, allowing you to save and retrieve browser binaries to optimize CI/CD pipeline performance.

Does caching Playwright browsers work across different operating systems in CI/CD?

Yes, caching Playwright browsers works across different operating systems. The solution caches browsers based on OS-specific paths to handle path variations, ensuring efficient retrieval regardless of the runner environment.

What is the best way to avoid unnecessary Playwright browser downloads in CI pipelines?

The best way to avoid unnecessary Playwright browser downloads is to implement conditional downloading via a caching step. This ensures binaries are only fetched when the cache is empty or the Playwright version changes, optimizing build efficiency.