Skip to content

Instantly share code, notes, and snippets.

@agoldis
Created December 12, 2022 05:23
Show Gist options
  • Save agoldis/57a1839c64207b574a38efd00deeb266 to your computer and use it in GitHub Desktop.
Save agoldis/57a1839c64207b574a38efd00deeb266 to your computer and use it in GitHub Desktop.
An example of running 3 parallel runners using Currents as a dashboard for cypress tests
image: cypress/base:14.16.0
## job definition for running E2E tests in parallel
e2e: &e2e
name: E2E tests
caches:
- node
- cypress
script:
- yarn install --frozen-lockfile
- yarn add cypress @currents/cli
- yarn currents run --record --parallel --key $CURRENTS_RECORD_KEY --ci-build-id $BITBUCKET_BUILD_NUMBER
artifacts:
# store any generates images and videos as artifacts
- cypress/screenshots/**
- cypress/videos/**
pipelines:
default:
- step:
name: Install dependencies
caches:
- npm
- cypress
- node
script:
- yarn install --frozen-lockfile
- yarn add cypress @currents/cli
- parallel:
# run N steps in parallel
- step:
<<: *e2e
- step:
<<: *e2e
- step:
<<: *e2e
definitions:
caches:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment