-
Notifications
You must be signed in to change notification settings - Fork 23
44 lines (44 loc) · 1.15 KB
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Cypress Test
on:
push:
branches:
- development
- master
pull_request:
branches:
- development
- master
pull_request_target:
types: [opened]
branches:
- development
- master
jobs:
cypress-test:
name: Test with Server
runs-on: ubuntu-latest
env: # environment variable
GATSBY_BREATHECODE_HOST: https://breathecode-test.herokuapp.com/v1
strategy:
matrix:
node: [14.x]
steps:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Install Node dependencies
run: npm install
- name: Running Tests
# Install NPM dependencies, cache them correctly
uses: cypress-io/github-action@v4
with:
build: npm run build
start: npm run serve
browser: chrome
wait-on: 'http://localhost:8080'
config: pageLoadTimeout=100000,baseUrl=http://localhost:8080