Cypress - GitHub Actions
Using GitHub Actions Matrix for parallelizing Cypress tests
By using GitHub Actions matrix execution strategy, you can create multiple containers that will run Cypress tests in parallel. Currents orchestrates the tests between multiple containers, applying intelligent optimizations to reduce the overall runtime of your workflow, and records screenshots and videos for later troubleshooting.

Please take a look at the example repository that showcases running cypress tests in parallel using GitHub Actions.
The example workflow config file:
runs 3 containers with cypress tests in parallel
uses Custom Test Command to run
cypress-cloudfor recording test results and parallelization with Currents.devNote: set the
projectIdincurrents.config.js(you can obtain the project id from Currents.dev in Project Settings)Note: install
cypress-cloud/pluginincypress.config.jsNote: use CLI arguments to customize your cypress runs, e.g.:
cypress-cloud run --parallel --record --key <your currents.dev key> --group groupANote: 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 demo workflow appears in Currents dashboard

Last updated
Was this helpful?