chore(e2e): update cypress config (#38676)

This commit is contained in:
Mrugesh Mohapatra
2020-04-29 16:47:06 +05:30
committed by GitHub
parent b009af1810
commit ba053b7abe

View File

@ -4,6 +4,8 @@ on:
branches:
- master
- production-**
# This will let us work on cypress config itself
- cypress-**
jobs:
cypress-run:
name: Cypress run
@ -11,7 +13,7 @@ jobs:
services:
mongodb:
image: mongo:3.5.5
# ports may not be necessary, try without
# ports may not be necessary, try without
ports:
- 27017:27017
steps:
@ -25,11 +27,11 @@ jobs:
uses: cypress-io/github-action@v1
with:
build: npm run build
# this should mirror the production build, but for now we're just using the dev
# server and gatsby serve instead (the npm script serve:client needs updating!)
# this should mirror the production build, but for now we're just using the dev
# server and gatsby serve instead (the npm script serve:client needs updating!)
start: npm start
wait-on: http://localhost:8000
# the site builds in about 8 minutes, so there is currently 12 minutes of time
# left for testing.
# the site builds in about 8 minutes, so there is currently 12 minutes of time
# left for testing.
wait-on-timeout: 1200
config: baseUrl=http://localhost:8000