-
Notifications
You must be signed in to change notification settings - Fork 2
101 lines (93 loc) · 3.14 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
name: Cypress
on: [push]
jobs:
chrome:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn cypress info
- run: node --version
- run: node -p 'os.cpus()'
- run: yarn cy:test:chrome
edge:
runs-on: ubuntu-latest
container:
image: cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
options: --user 1001
steps:
- name: Checkout
uses: actions/checkout@v3
- run: yarn install --frozen-lockfile
- run: yarn cypress info
- run: node --version
- run: node -p 'os.cpus()'
- run: yarn cy:test:edge
# chrome:
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
# options: --user 1001 # very important otherwise there is a permission error
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving the Dashboard hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Download the build folders
# uses: actions/download-artifact@v3
# with:
# name: build
# path: .next
# # Install NPM dependencies, cache them correctly
# # and run all Cypress tests
# - name: Test Chrome
# uses: cypress-io/github-action@v4
# with:
# # Specify Browser since container image is compile with Firefox
# browser: chrome
# start: yarn start
# wait-on: 'http://localhost:3000'
# edge:
# runs-on: ubuntu-latest
# container:
# image: cypress/browsers:node16.14.2-slim-chrome100-ff99-edge
# options: --user 1001 # very important otherwise there is a permission error
# needs: install
# strategy:
# # when one test fails, DO NOT cancel the other
# # containers, because this will kill Cypress processes
# # leaving the Dashboard hanging ...
# # https://github.com/cypress-io/github-action/issues/48
# fail-fast: false
# matrix:
# # run copies of the current job in parallel
# containers: [1]
# steps:
# - name: Checkout
# uses: actions/checkout@v3
# - name: Download the build folders
# uses: actions/download-artifact@v3
# with:
# name: build
# path: .next
# # Install NPM dependencies, cache them correctly
# # and run all Cypress tests
# - name: Test Edge
# uses: cypress-io/github-action@v4
# with:
# # Specify Browser since container image is compile with Firefox
# browser: edge
# start: yarn start
# wait-on: 'http://localhost:3000'