-
Notifications
You must be signed in to change notification settings - Fork 203
418 lines (405 loc) · 15.4 KB
/
test.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
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
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
name: Run go tests
on:
push:
permissions:
contents: read
jobs:
go-test:
name: Go Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- run: go mod download
- run: go test $(go list ./... | grep -v /gui/ | grep -v /tests/)
build-binary:
name: Build Test Binary
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
go-version: '1.20'
- run: go build -trimpath -ldflags "-w -s -extldflags '-static'" -o suo5
- uses: actions/upload-artifact@v3
with:
name: test-target
path: suo5
resin-test:
name: Resin
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: expertsystems/resin
mount: /var/resin/webapps/ROOT/assets
env:
SUO5_JSP_URL: http://127.0.0.1:8080/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:8080/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
docker run -it --rm -d -p8080:8080 -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_JSP_URL }} 30
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
jetty-test:
name: Jetty
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- jetty:9.4.30-jdk8
- jetty:9.4.30-jdk11
- jetty:9.4-jdk8
- jetty:9.4-jdk11
- jetty:9.4-jdk17
- jetty:9.4-jdk21
- jetty:10.0.1-jdk11
- jetty:10.0-jdk11
- jetty:10.0-jdk17
- jetty:10.0-jdk21
- jetty:11.0.1-jdk11
- jetty:11.0-jdk11
- jetty:11.0-jdk17
- jetty:11.0-jdk21
mount:
- /var/lib/jetty/webapps/ROOT/assets
env:
SUO5_JSP_URL: http://127.0.0.1:8080/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:8080/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
docker run -it --rm -d -p8080:8080 -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_JSP_URL }} 30
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
jboss-test:
name: JBoss
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: vulhub/jboss:as-4.0.5
mount: /opt/jboss/jboss4/server/default/deploy/jbossweb-tomcat55.sar/ROOT.war/assets
- image: vulhub/jboss:as-6.1.0
mount: /jboss-6.1.0.Final/server/default/deploy/ROOT.war/assets
env:
SUO5_JSP_URL: http://127.0.0.1:8080/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:8080/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
docker run -it --rm -d -p8080:8080 -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_JSP_URL }} 30
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
websphere-test:
name: WebSphere
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- websphere-liberty:23.0.0.3-full-java8-ibmjava
- websphere-liberty:23.0.0.4-full-java11-openj9
- websphere-liberty:22.0.0.9-full-java11-openj9
- websphere-liberty:22.0.0.12-full-java17-openj9
deploy:
- /config/dropins
env:
SUO5_JSP_URL: http://127.0.0.1:9080/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:9080/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
with:
jar: true
- run: |
set -ex
docker run -it --rm -d -p9080:9080 --name webshpere-test \
-v ${{ github.workspace }}/assets:${{ matrix.deploy }} \
${{ matrix.image }}
docker ps -a
bash ./.github/workflows/ready.sh http://127.0.0.1:9080 60
sleep 10
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
tongweb-test:
name: TongWeb
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: boyingking/tongweb-auto
deploy: /home/tw6/tongweb6/applications/console/assets
env:
SUO5_JSP_URL: http://127.0.0.1:9060/console/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:9060/console/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
with:
jar: true
- run: |
set -ex
docker run -it --rm -d -p9060:9060 --name tongweb-test \
-v ${{ github.workspace }}/assets:${{ matrix.deploy }} \
${{ matrix.image }}
docker ps -a
bash ./.github/workflows/ready.sh http://127.0.0.1:9060 30
sleep 10
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -no-gzip
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full -no-gzip
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half -no-gzip
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -no-gzip
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full -no-gzip
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half -no-gzip
weblogic-test:
name: Weblogic
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- container-registry.oracle.com/middleware/weblogic:12.2.1.3
- container-registry.oracle.com/middleware/weblogic:12.2.1.3-ol8-210214
- container-registry.oracle.com/middleware/weblogic:12.2.1.4
- container-registry.oracle.com/middleware/weblogic:12.2.1.4-ol8-210214
- container-registry.oracle.com/middleware/weblogic:14.1.1.0-11
- container-registry.oracle.com/middleware/weblogic:14.1.1.0-11-ol8
deploy:
- /u01/oracle/user_projects/domains/base_domain/autodeploy/
include:
- image: vulhub/weblogic:10.3.6.0-2017
deploy: /root/Oracle/Middleware/user_projects/domains/base_domain/autodeploy/
env:
SUO5_JSP_URL: http://127.0.0.1:7001/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:7001/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
with:
jar: true
- run: |
echo ${password} | docker login -u ${username} --password-stdin container-registry.oracle.com
env:
username: ${{ secrets.OCR_USERNAME }}
password: ${{ secrets.OCR_PASSWORD }}
- run: |
set -ex
mkdir properties
printf "username=weblogic\npassword=weblogic123\n" > ./properties/domain.properties
docker run -it --rm -d -p7001:7001 --name weblogic-test \
-e PRODUCTION_MODE=dev \
-v ${{ github.workspace }}/properties:/u01/oracle/properties \
${{ matrix.image }}
docker ps -a
bash ./.github/workflows/ready.sh http://127.0.0.1:7001 60
docker cp ./assets/assets.war weblogic-test:${{ matrix.deploy }}
sleep 10
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
tomcat-test:
name: Tomcat
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- andreptb/tomcat:6.0.45-jdk6
- andreptb/tomcat:6.0.48-jdk6
- andreptb/tomcat:6.0.44-jdk7
- andreptb/tomcat:7.0.64-jdk7
- andreptb/tomcat:7.0.64-jdk8
- andreptb/tomcat:8.0.26-jdk7
- andreptb/tomcat:9.0.10
- tomcat:6.0.41-jre7
- tomcat:6.0-jre7
- tomcat:6.0-jre8
- tomcat:7.0.56-jre7
- tomcat:7.0-jre7
- tomcat:7.0-jre8
- tomcat:8.0.14-jre7
- tomcat:8.0-jre7
- tomcat:8.0-jre8
- tomcat:8.5.0-jre8
- tomcat:8.5.0-jre8
- tomcat:8.5-jre8
- tomcat:8.5-jre11
- tomcat:8.5-jre17
- tomcat:8.5-jre21
- tomcat:9.0.1-jre8
- tomcat:9.0-jre8
- tomcat:9.0-jre11
- tomcat:9.0-jre17
- tomcat:9.0-jre21
- tomcat:10.0.0-jdk8
- tomcat:10.0-jre8
- tomcat:10.0-jre11
- tomcat:10.0-jre17
- tomcat:10.1.0-jre11
- tomcat:10.1-jre11
- tomcat:10.1-jre17
- tomcat:10.1-jre21
mount:
- /usr/local/tomcat/webapps/ROOT/assets
jspx:
- true
include:
- image: nortthon/tomcat5
mount: /opt/tomcat/webapps/ROOT/assets
jspx: true
- image: consol/tomcat-4.1
mount: /opt/tomcat/webapps/ROOT/assets
jspx: false
env:
SUO5_JSP_URL: http://127.0.0.1:8080/assets/suo5.jsp
SUO5_JSPX_URL: http://127.0.0.1:8080/assets/suo5.jspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
docker run -it --rm -d -p8080:8080 -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_JSP_URL }} 30
curl -v ${{ env.SUO5_JSP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSP_URL }} -T https://www.bing.com -mode half
if [ "${{ matrix.jspx }}" = "true" ]; then
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode full
./suo5 -debug -t ${{ env.SUO5_JSPX_URL }} -T https://www.bing.com -mode half
fi
php-test:
name: PHP
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
image:
- webdevops/php-nginx:5.6
- webdevops/php-nginx:7.0
- webdevops/php-nginx:7.1
- webdevops/php-nginx:7.2
- webdevops/php-nginx:7.3
- webdevops/php-nginx:7.4
- webdevops/php-nginx:8.0
- webdevops/php-nginx:8.1
- webdevops/php-nginx:8.2
# - webdevops/php-nginx:ubuntu-12.04
# - webdevops/php-nginx:ubuntu-14.04
mount:
- /app
env:
SUO5_PHP_URL: http://127.0.0.1:8080/suo5.php
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
docker run -it --rm -d -p8080:80 -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_PHP_URL }} 30
curl -v ${{ env.SUO5_PHP_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_PHP_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_PHP_URL }} -T https://www.bing.com -mode half
donet-test:
name: DoNet
needs: build-binary
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- image: junalmeida/mono-web:latest
mount: /var/www/sample-app
env:
SUO5_ASPX_URL: http://127.0.0.1:8080/suo5.aspx
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions
- run: |
set -ex
mkdir -p config
cat << EOF > ./config/sample.webapp
<?xml version="1.0" encoding="UTF-8"?>
<apps>
<web-application>
<name>root</name>
<vhost>*</vhost>
<vport>-1</vport>
<vpath>/</vpath>
<path>/var/www/sample-app/</path>
</web-application>
</apps>
EOF
cat config/sample.webapp
cp ./assets/.net/suo5.aspx ./assets/suo5.aspx
docker run -it --rm -d -p8080:80 -v ${{ github.workspace }}/config:/etc/mono/pools -v ${{ github.workspace }}/assets:${{ matrix.mount }} ${{ matrix.image }}
bash ./.github/workflows/ready.sh ${{ env.SUO5_ASPX_URL }} 30
curl -v ${{ env.SUO5_ASPX_URL }}
chmod +x ./suo5
./suo5 -debug -t ${{ env.SUO5_ASPX_URL }} -T https://www.bing.com
./suo5 -debug -t ${{ env.SUO5_ASPX_URL }} -T https://www.bing.com -mode half