Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
config.yml
integration_tests:
<<: *defaults
docker:
## docker image file for cypress
- image: cypress/base:8
environment:
## this enables colors in the output
TERM: xterm
steps:
- attach_workspace:
at: ~/
## build the project
- run: npm run build
## run the localhost server
- run:
name: Starting server
command: |
npm start
background: true
- run: sleep 5
## set up our localhost to point at integration.gql-dev.com
## run cypress
- run:
name: Running integration tests
command: |
echo 127.0.0.1 integration.gql-dev.com | tee -a /etc/hosts
npm run cypress:run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment