-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (78 loc) · 2.48 KB
/
crypress.yml
File metadata and controls
88 lines (78 loc) · 2.48 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# name: Cypress Tests with Install Job and UI Chrome Job x 5
# # https://docs.cypress.io/guides/continuous-integration/github-actions#Worker-Jobs
# on: [push]
# jobs:
# install:
# runs-on: ubuntu-latest
# container: cypress/browsers:node12.18.3-chrome87-ff82
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Cypress install
# uses: cypress-io/github-action@v2
# with:
# # Disable running of tests within install job
# runTests: false
# build: yarn build
# - name: Save build folder
# uses: actions/upload-artifact@v2
# with:
# name: dist
# if-no-files-found: error
# path: dist
# ui-chrome-tests:
# runs-on: ubuntu-latest
# container: cypress/browsers:node12.18.3-chrome87-ff82
# needs: install
# strategy:
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# # containers: [1, 2, 3, 4, 5]
# containers: [1]
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Download the build folders
# uses: actions/download-artifact@v2
# with:
# name: dist
# path: dist
# - name: 'UI Tests - Chrome'
# uses: cypress-io/github-action@v2
# with:
# # we have already installed all dependencies above
# install: false
# start: yarn start:ci
# wait-on: 'http://localhost:3000'
# wait-on-timeout: 120
# browser: chrome
# record: true
# parallel: true
# group: 'UI - Chrome'
# spec: cypress/tests/ui/*
# env:
# CYPRESS_RECORD_KEY: ${{ secrets.DASHBOARDRECORDKEY }}
# # 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 }}
name: Chrome headless
on: push
jobs:
chrome-headless:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Headless Chrome
uses: cypress-io/github-action@v2
timeout-minutes: 10
with:
build: npm run build
start: npm start
browser: chrome
headless: true
record: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.dashboardRecordKey }}