Cypress - GitHub Actions
Using GitHub Actions Matrix for parallelizing Cypress tests
Last updated
Using GitHub Actions Matrix for parallelizing Cypress tests
Last updated
TL;DR Check out the GitHub repository:
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-cloud
for recording test results and parallelization with Currents.dev
Note: set the projectId
in currents.config.js
(you can obtain the project id from Currents.dev in Project Settings)
Note: install cypress-cloud/plugin
in cypress.config.js
Note: use CLI arguments to customize your cypress runs, e.g.: cypress-cloud run --parallel --record --key <your currents.dev key> --group groupA
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 demo workflow appears in Currents dashboard