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