An example repository for setting up Currents + Chromatic and run Playwright tests on GitHub Actions
pnpm install
Set your own CURRENTS_RECORD_KEY
and CURRENTS_PROJECT_ID
:
CURRENTS_RECORD_KEY=xxx CURRENTS_PROJECT_ID=yyy pnpm exec pwc-p
GitHub Actions:
- Set
CURRENTS_RECORD_KEY
andCHROMATIC_PROJECT_TOKEN
repository secrets - Set Currents project id in
currents.config.ts:config.projectId
incurrents.config.ts
Check out a GitHub Actions example build.
- Currents Reporter is configured in playwright.config.ts
- pwc-p runs Playwright using Currents Orchestration
- Chromatic collects the visual testing artifacts as a separate GHA job