-
-
Notifications
You must be signed in to change notification settings - Fork 400
62 lines (56 loc) · 1.71 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Cypress Tests
on: [pull_request]
jobs:
install:
runs-on: ubuntu-latest
container: cypress/browsers:node14.19.0-chrome100-ff99-edge
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cypress install
uses: cypress-io/github-action@v4.2.0
with:
# Disable running of tests within install job
runTests: false
build: yarn build:test
- name: Save build folder
uses: actions/upload-artifact@v2
with:
name: build
if-no-files-found: error
path: |
lib
e2e/.next
ui-chrome-tests:
runs-on: ubuntu-latest
container: cypress/browsers:node14.19.0-chrome100-ff99-edge
needs: install
strategy:
fail-fast: false
matrix:
# run copies of the current job in parallel
containers: [1, 2, 3, 4, 5]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Download the build folders
uses: actions/download-artifact@v2
with:
name: build
- name: 'UI Tests - Chrome'
uses: cypress-io/github-action@v4.2.0
with:
# we have already installed all dependencies above
install: false
start: yarn e2e:start
wait-on: 'http://localhost:3000'
wait-on-timeout: 120
browser: chrome
record: true
parallel: true
group: 'UI - Chrome'
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}