The full guide: https://currents.dev/readme/ci-setup/aws-code-build
This is an example repository that showcases using Currents.dev for running parallel cypress tests using AWS CodeBuild CI
The example buildspec.yml defines a configuration for running cypress tests in parallel mode using 3 workers in matrix mode. The example is designed to be executed within a batch build.
-
Note: The example uses CODEBUILD_INITIATOR as a CI Build ID. When testing interactively, the CODEBUILD_INITIATOR will be set to the username of the build initiator. When running a batched build, the variable will have the batch build id.
-
Note: get your record key from Currents.dev and set AWS CodeBuild Environment Variable variable
CURRENTS_RECORD_KEY
-
Note: set the
projectId
incurrents.config.js
- obtain the project id from Currents.dev -
Note: use CLI arguments to customize your cypress-cloud runs, e.g.:
npx cypress-cloud run --parallel --record --key <your currents.dev key> --group groupA