Repository navigation
182 lines (149 loc) · 4.59 KB
/
Copy pathcoverage.yml
File metadata and controls
182 lines (149 loc) · 4.59 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
name: Coverage Testing
on:
push:
pull_request:
types: [opened, reopened]
workflow_dispatch:
permissions: read-all
jobs:
Ubuntu-Coverage:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [24, 26]
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
name: Ubuntu - Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install Global Dependencies
run: npm install -g c8
- name: Install Application (CI)
id: installCi
continue-on-error: true
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Application (Install)
if: steps.installCi.outcome == 'failure'
run: npm install
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Puppeteer Browser
continue-on-error: true
run: node node_modules/puppeteer/install.mjs
- name: Copy Test Config
run: cp ./data/testing.config.js ./data/config.js
- name: Test Application Startup
run: npm run test:startup
- name: Verify Cypress
run: npm run cy:verify
env:
CYPRESS_VERIFY_TIMEOUT: 600000
- name: Run Coverage Testing
run: npm run coverage
- name: Codecov
if: ${{ (success() || failure()) && github.event_name != 'pull_request' && env.CODECOV_TOKEN != '' && matrix.node == 24 }}
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
- name: Archive Cypress downloads and error screenshots
if: ${{ (success() || failure()) }}
uses: actions/upload-artifact@v6
with:
name: cy-ubuntu-node-${{ matrix.node }}
path: |
cypress/downloads/*
cypress/screenshots/**/*.png
cypress/videos/**/*.mp4
if-no-files-found: ignore
Windows-Test:
runs-on: windows-2025
strategy:
fail-fast: false
matrix:
node: [24, 26]
env:
CYPRESS_USE_LONGER_TIMEOUTS: 'true'
name: Windows - Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install Application (CI)
id: installCi
continue-on-error: true
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Application (Install)
if: steps.installCi.outcome == 'failure'
run: npm install
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Puppeteer Browser
continue-on-error: true
run: node node_modules/puppeteer/install.mjs
- name: Copy Test Config
run: cp ./data/testing.config.js ./data/config.js
- name: Verify Cypress
run: npm run cy:verify
env:
CYPRESS_VERIFY_TIMEOUT: 600000
- name: Run Test
run: npm run test
env:
CYPRESS_USE_LONGER_TIMEOUTS: 'true'
- name: Archive Cypress downloads and error screenshots
if: ${{ (success() || failure()) }}
uses: actions/upload-artifact@v6
with:
name: cy-windows-node-${{ matrix.node }}
path: |
cypress/downloads/*
cypress/screenshots/**/*.png
cypress/videos/**/*.mp4
if-no-files-found: ignore
Mac-StartupTest:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
node: [24]
name: MacOS - Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
cache: 'npm'
- name: Install Application (CI)
id: installCi
continue-on-error: true
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Application (Install)
if: steps.installCi.outcome == 'failure'
run: npm install
env:
PUPPETEER_SKIP_DOWNLOAD: 'true'
- name: Install Puppeteer Browser
continue-on-error: true
run: node node_modules/puppeteer/install.mjs
- name: Copy Test Config
run: cp ./data/testing.config.js ./data/config.js
- name: Run Startup Test
run: npm run test:startup