This directory contains examples for setting up Playwright tests with Currents in GitHub Actions using basic sharding.
| Workflow | Description | Method |
|---|---|---|
test-basic-pwc.yml |
Run tests using pwc CLI wrapper |
CLI (npx pwc) |
test-basic-reporter.yml |
Run tests using Playwright Reporter config | Reporter (playwright.config.reporter.ts) |
test-basic-reporter-with-summary.yml |
Same as above + GitHub Summary | Reporter |
These workflows demonstrate how to:
- Install dependencies (Playwright, browsers).
- Run tests in parallel using GitHub Actions Matrix strategy.
- Report results to Currents.
The workflows use shard: [1, 2, 3] matrix to split tests across 3 machines.
- CLI Mode:
npx pwc --shard=${{ matrix.shard }}/${{ strategy.job-total }} - Reporter Mode:
npx playwright test --shard=${{ matrix.shard }}/${{ strategy.job-total }}
Tests are located in this directory (setup-ci).
playwright.config.ts: Standard Playwright config.playwright.config.reporter.ts: Config with Currents reporter enabled.