-
Notifications
You must be signed in to change notification settings - Fork 12
53 lines (48 loc) · 1.44 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: chrome e2e tests
on: [pull_request]
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- name: Setup npm cache
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies (root)
run: npm install
- name: Build Packages
run: npm run build
- name: Run e2e tests
uses: cypress-io/github-action@v2
with:
start: "npm run start:ci"
wait-on: "http://localhost:9090"
wait-on-timeout: 600
browser: chrome
working-directory: e2e
config: video=true,screenshotOnRunFailure=true
install: false
record: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
- name: Upload screenshots on failure
uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: e2e/cypress//screenshots
- name: Upload videos
uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: e2e/cypress/videos