This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
106 lines (93 loc) · 3.19 KB
/
cypress-ubuntu.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
102
103
104
105
106
name: Cypress E2E Tests on Ubuntu
on: [push]
jobs:
cypress-ubuntu-22:
runs-on: ubuntu-22.04
timeout-minutes: 10
strategy:
matrix:
node: [18, 16]
name: 22.04, Node v${{ matrix.node }}
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run Chrome
uses: cypress-io/github-action@v6.5.0
with:
record: false
# tag: node-${{ matrix.node }}
# group: Chrome Tests on Node v${{ matrix.node }}
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }}
browser: chrome
build: yarn run build
start: yarn run start
wait-on: 'http://localhost:9000'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cypress run Firefox
uses: cypress-io/github-action@v6.5.0
with:
record: false
# tag: node-${{ matrix.node }}
# group: Firefox Tests on Node v${{ matrix.node }}
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }}
browser: firefox
build: echo # Already built from Chrome test
start: echo # Already running from Chrome test
wait-on: 'http://localhost:9000'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
cypress-ubuntu-20:
runs-on: ubuntu-20.04
timeout-minutes: 10
strategy:
matrix:
node: [18, 16]
name: 20.04, Node v${{ matrix.node }}
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout
uses: actions/checkout@v3
- name: Cypress run Chrome
uses: cypress-io/github-action@v6.5.0
with:
record: false
# tag: node-${{ matrix.node }}
# group: Chrome Tests on Node v${{ matrix.node }}
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }}
browser: chrome
build: yarn run build
start: yarn run start
wait-on: 'http://localhost:9000'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cypress run Firefox
uses: cypress-io/github-action@v6.5.0
with:
record: false
# tag: node-${{ matrix.node }}
# group: Firefox Tests on Node v${{ matrix.node }}
cache-key: node-v${{ matrix.node }}-on-${{ runner.os }}-hash-${{ hashFiles('yarn.lock') }}
browser: firefox
build: echo # Already built from Chrome test
start: echo # Already running from Chrome test
wait-on: 'http://localhost:9000'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots