This repository showcases running Playwright tests on GitHub Actions in parallel, while using Currents as the reporting dashboard.
The repo contains a few Playwright tests with one test that always fails (intentionally). The example configuration files use Matrix Execution Strategy to run 3 containers for parallelization.
To reproduce the setup:
- Create an organization, get your Record Key and Project Id at https://app.currents.dev
- Set GitHub secret variable
CURRENTS_RECORD_KEY
.
See the example GH Actions configuration:
Additional resources:
- Playwright Features on Currents: https://currents.dev/playwright
- Integration Documentation: https://currents.dev/readme/integration-with-playwright/currents-playwright
- CI Build ID Guide: https://currents.dev/readme/guides/cypress-ci-build-id
The results are being reported to Currents for more efficient troubleshooting, and monitoring test suite flakiness and performance.
Currents will collect the following information:
- console output
- screenshots
- videos
- trace files
- timing
- outcomes
- flaky tests
- error details
- tags for more convenient management of the tests
Here's how the results are being displayed in Currents dashboard (recorded on November 2023).
gh-actions-demo.mp4
Currents will add inline information to GitHub Pull Request. Example: currents-dev/playwright-gh-actions-demo#17.