-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (36 loc) · 964 Bytes
/
ci.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
name: Test and Coverage
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
cypress-run:
runs-on: ubuntu-latest
container:
image: cypress/included:10.6.0
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress run
uses: cypress-io/github-action@v4
with:
build: yarn build:example
start: yarn start:example
wait-on: "http://localhost:3000"
browser: chrome
env:
CYPRESS_CACHE_FOLDER: '${GITHUB_WORKSPACE}/.cypress-cache'
- name: Cypress save screenshots
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- name: Cypress save videos
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos