-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (37 loc) · 1.07 KB
/
e2e.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
name: End-to-end tests
# on:
# push:
# branches:
# - master
# - dev
# tags:
# - v*
# pull_request:
# branches:
# - dev
# - master
jobs:
cypress-run:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
# https://github.com/actions/checkout/releases/tag/v4.0.0
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac
- name: Setup nodejs
# https://github.com/actions/setup-node/releases/tag/v3.8.1
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d
with:
node-version: ${{ matrix.node-version }}
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
# https://github.com/cypress-io/github-action/releases/tag/v6.5.0
uses: cypress-io/github-action@59810ebfa5a5ac6fcfdcfdf036d1cd4d083a88f2
with:
start: npm start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome