Playwright CI Caching for .NET

•
423
•

Accelerates .NET CI/CD pipelines by implementing intelligent caching for Playwright browser binaries to reduce build times.

This skill optimizes .NET end-to-end testing workflows by automating the caching of Playwright browser binaries in GitHub Actions and Azure DevOps. It solves the common problem of repetitive 400MB downloads that add minutes to every build. By extracting the Playwright version directly from Central Package Management (CPM) files to generate unique cache keys, it ensures that browsers are only downloaded when versions change or the cache expires. The skill provides platform-specific configurations for Linux, macOS, and Windows, along with robust PowerShell helper scripts to ensure reliable execution across different environments.

主要功能

01Cross-platform support for Windows, Linux, and macOS cache paths
02423 GitHub stars
03Pre-configured cache patterns for GitHub Actions and Azure DevOps
04Portable PowerShell helper scripts for CLI discovery
05Automated Playwright version extraction from Directory.Packages.props
06Version-based cache invalidation to prevent SDK mismatches

使用场景

01Reducing CI/CD runtime and bandwidth usage for .NET E2E test suites
02Standardizing Playwright installation logic across Azure DevOps pipelines
03Setting up reliable browser caching for multi-OS GitHub Actions workflows