Create an e2e task in your Concourse job
e.g. e2e.yml
---
platform: linux
image_resource:
type: docker-image
source:
repository: ddubson/cypress-e2e
inputs:
- my-cypress-repo
run:
path: my-cypress-repo/ci/e2e.sh
Note: make sure you have an input that has the cypress enabled front-end repository
Note: Use ddubson/cypress-e2e
docker image from Docker Hub. The image is based on cypress/base
image which is official
To run cypress in a Concourse task, make sure to run it like so: ${npm bin}/cypress run
e.g. e2e.sh
#!/bin/bash
cd my-cypress-repo/
${npm bin}/cypress run
Note: npm bin
is required since the image contains a local install of Cypress which should be referenced from the install dir.