-
Notifications
You must be signed in to change notification settings - Fork 183
293 lines (277 loc) · 9.89 KB
/
test.yaml
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
name: test
on: [push, pull_request]
env:
BUILD_ENV: production
CSP_ALLOWED_HOSTS: "http://localhost:8081 ws://localhost:8081 http://localhost:9953 ws://localhost:9080 http://localhost:9080 ws://localhost:9081 http://localhost:9081 ws://localhost:9082 http://localhost:9082 ws://localhost:9084 http://localhost:9084"
NO_OPT: true
NO_INSTALLER: true
TRAVIS_OS_NAME: linux
TRAVIS_HOME: ${{ github.workspace }}
TRAVIS_BUILD_DIR: ${{ github.workspace }}
TRAVIS_JOB_ID: ${{ github.run_id }}
TRAVIS_CPU_ARCH: amd64
TRAVIS_KUBE_SERVER_VERSION: 17
TRAVIS_KUBE_VERSION: 1.18.3
TRAVIS_HELM_VERSION: 3.3.4
TRAVIS_OC_VERISON: 4.3.3
WEBPACK_CLIENT_URL: "http://localhost:9080/"
WINDOW_WIDTH: 1400
WINDOW_HEIGHT: 1050
RUNNING_KUI_TEST: true
KUI_USE_PROXY: true
MINIO_VERSION: minio_20210214040133.0.0
MINIO_SHA256: d5d9489262b532158a6dfd3f093de685854d83e0caf02ccef2e3d83294cb8eda
jobs:
api-browser:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: test
MOCHA_RUN_TARGET: webpack
run: ./tools/travis/install.sh && npx concurrently -n API1,API2 'npm run test1 api1' 'npm run test2 api2'
api-browser-bottom-input:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: alternate
MOCHA_RUN_TARGET: webpack
run: ./tools/travis/install.sh && BOTTOM_INPUT_MODE=true npx concurrently -n BOTTOM 'npm run test bottom-input'
api-electron:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: test
MOCHA_RUN_TARGET: electron
run: ./tools/travis/install.sh && npm run test api-popup && npx concurrently -n API1,API2 'npm run test1 api1' 'npm run test2 api2'
bash-core-browser:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: webpack
NEEDS_BASH_PREP: true
NEEDS_GIT: true
run: ./tools/travis/install.sh && npx concurrently -n CORE 'npm run test1 core' && npx concurrently -n SUP1 'npm run test2 core-support' && npx concurrently -n EDIT 'npm run test3 editor'
bash-core-browser-2:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: webpack
NEEDS_BASH_PREP: true
NEEDS_GIT: true
run: ./tools/travis/install.sh && npx concurrently -n SUP2 'npm run test4 core-support2' && npx concurrently -n BASH 'npm run test5 bash-like'
bash-electron:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: electron
NEEDS_BASH_PREP: true
NEEDS_GIT: true
TEST_FROM_BUILD: ${{ github.workspace }}/dist/electron/Kui-linux-x64/Kui
KUI_NO_TRAY_MENU: true # i have no idea, but something in tray/main fails on linux, just in github actions
run: ./tools/travis/install.sh && npm run test1 bash-like-wait && npm run test1 bash-like
k8s-browser:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file
run: |
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
# DONT'T FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADRESSED!
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: webpack
NEEDS_K8S: true
NEEDS_OC: true
NEEDS_TOP: true
run: ./tools/travis/install.sh && npx concurrently -n K8S3 'npm run test1 k8s3' && npx concurrently -n K8S4 'npm run test1 k8s4' && npx concurrently -n K8S2 'npm run test1 k8s2'
k8s-chaos:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file
run: |
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
# DONT'T FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADRESSED!
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: webpack
NEEDS_K8S: true
NEEDS_OC: true
NEEDS_TOP: true
TRAVIS_CHAOS_TESTING: true
run: ./tools/travis/install.sh && npx concurrently -n K8S2 'npm run test1 k8s2'
k8s-electron:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
# TEMPORARY WHILE GITHUB FIXES THIS https://github.com/actions/virtual-environments/issues/3185
- name: Add the current IP address, long hostname and short hostname record to /etc/hosts file
run: |
echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts
# DONT'T FORGET TO REMOVE CODE ABOVE WHEN ISSUE IS ADRESSED!
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: electron
NEEDS_K8S: true
NEEDS_OC: true
NEEDS_TOP: true
NEEDS_HELM: true
TEST_FROM_BUILD: "${{ github.workspace }}/dist/electron/Kui-linux-x64/Kui"
KUI_DIST_PATH: "${{ github.workspace }}/dist/electron/Kui-linux-x64/Kui"
KUI_NO_TRAY_MENU: true # i have no idea, but something in tray/main fails on linux, just in github actions
run: ./tools/travis/install.sh && npx concurrently -n K8S 'npm run test1 k8s k8s-popup' && npx concurrently -n K8S1 'npm run test1 k8s1' && npx concurrently -n LOGS 'npm run test1 logs' && npx concurrently -n HELM 'npm run test1 helm'
osx1:
runs-on: macos-11
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: electron
NEEDS_GIT: true
TRAVIS_OS_NAME: osx
TEST_FROM_BUILD: ${{ github.workspace }}/dist/electron/Kui-darwin-x64/Kui.app/Contents/MacOS/Kui
run: ./tools/travis/install.sh && npx concurrently -n COPY 'npm run test1 core-standalone' && npx concurrently -n SUP2 'npm run test4 core-support2' && npx concurrently -n EDIT 'npm run test3 editor'
osx2:
runs-on: macos-11
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: electron
NEEDS_GIT: true
TRAVIS_OS_NAME: osx
run: ./tools/travis/install.sh && npx concurrently -n CORE,SUP1 'npm run test1 core' 'npm run test2 core-support'
s3-electron:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: electron
NEEDS_MINIO: true
run: ./tools/travis/install.sh && npm run test1 s3
# this is a duplicate of s3-electron with one difference: `MOCHA_RUN_TARGET: webpack`
s3-browser:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Run Tests
env:
CLIENT: default
MOCHA_RUN_TARGET: webpack
NEEDS_MINIO: true
run: ./tools/travis/install.sh && npm run test1 s3