Playwright - GitHub Actions
Running Playwright in Parallel on GitHub Actions using Matrix Workflow
TL;DR Check out the example repository:
Currents uses the native Playwright Sharding to split the tests between multiple containers. Currents will collect the results from distributed runs, together with the generated artifacts for more efficient troubleshooting and providing insights into the test suite performance:
console output
screenshots
videos
traces
The example repository https://github.com/currents-dev/playwright-gh-actions-demo
showcases running Playwright tests in parallel using GitHub Actions.
Here's an example configuration file:
We've included 3 different config files to exemplify the workflows:
The example workflow test-basic-reporter.yml runs 3 containers with Playwright tests in parallel.
The example workflow full-parallel-prod.yml runs 5 shards in full parallel mode.
The example workflow test-or8n.yml runs orchestrated tests
Note: create an organization, get your record key on Currents.dev and set GH secret variable
CURRENTS_RECORD_KEY
Here's an example of how the first demo workflow appears in Currents dashboard:
![](https://docs.currents.dev/~gitbook/image?url=https%3A%2F%2F3745692499-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FqmFDEiUa9mr11LUlxDnt%252Fuploads%252FSTOKFqdu4kWVRmvyXeST%252Fplaywright-run.gif%3Falt%3Dmedia%26token%3Dbb497301-fac4-4f26-917d-56862d4e0066&width=768&dpr=4&quality=100&sign=47908a46&sv=1)
Last updated