playwright-ci-caching

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

10|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill playwright-ci-caching-agibuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: playwright-ci-caching
Source: https://github.com/AGIBuild/Agibuild.Fulora/tree/main/.cursor/skills/playwright-ci-caching
Command: npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill playwright-ci-caching-agibuild

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill significantly reduces CI/CD build times by caching Playwright browser binaries and dependencies, preventing slow and bandwidth-intensive downloads on every pipeline run.

Core Features & Use Cases

  • CI/CD Optimization: Integrates seamlessly with GitHub Actions and Azure DevOps to cache Playwright installations.
  • Reduced Build Times: Avoids the ~1-2 minute download time for Playwright browsers (approx. 400MB).
  • Automatic Cache Invalidation: Ensures the cache is always up-to-date by using the Playwright version as part of the cache key.
  • Use Case: When setting up E2E tests for a web application in a CI pipeline, this skill ensures that Playwright browsers are downloaded only once and reused across subsequent builds, drastically speeding up the feedback loop for developers.

Quick Start

Configure your GitHub Actions workflow to cache Playwright browsers using the provided YAML snippet.

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 reduce build times?

You cache Playwright browsers in GitHub Actions by configuring your workflow to store the binaries as a cache step. This prevents downloading 400MB files on every run, reducing CI build times by 1-2 minutes.

Why does my CI pipeline download Playwright browsers on every run?

Your CI pipeline downloads Playwright browsers on every run because it lacks a caching configuration. Implementing browser binary caching ensures the 400MB download occurs only once and is reused across subsequent pipeline runs.

Does the Playwright CI caching approach support Azure DevOps pipelines?

Yes, the Playwright CI caching approach supports Azure DevOps pipelines. It integrates seamlessly with both Azure DevOps and GitHub Actions to cache browser binaries and dependencies, optimizing end-to-end testing workflows.

How is the Playwright browser cache invalidated when versions change?

The Playwright browser cache is invalidated by using the Playwright version as part of the cache key. This automatic cache invalidation ensures the stored binaries are always up-to-date with your current version.

Do I need central package management to cache Playwright binaries in CI?

Yes, you need central package management (CPM) to cache Playwright binaries in CI. The caching mechanism requires CPM and PowerShell to extract the Playwright version for the cache key and execute the necessary scripts.