79
79
80
80
- name : Compile and run tests
81
81
shell : bash
82
- run : >-
83
- ./mvnw
84
- -B
85
- -e
86
- -T1C
87
- -U
88
- --no-transfer-progress
89
- -Dcheckstyle.skip=true
90
- -Dlicense.skip=true
91
- -Dstyle.color=always
92
- -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
93
- ${{ inputs.maven-opts }}
94
- clean verify
82
+ run : ./mvnw -B -U -Dcheckstyle.skip=true -Dlicense.skip=true clean verify
95
83
96
84
- name : Annotate test reports with build environment info
97
85
if : always()
@@ -113,8 +101,9 @@ jobs:
113
101
set +f -x
114
102
# Allow globs to not match anything without causing errors.
115
103
shopt -s nullglob
116
-
117
- tar -czvf reports-${{ matrix.java-version }}-${{ matrix.os-name }}.tgz \
104
+
105
+ # XZ with max compression, more efficient than using GZip.
106
+ XZ_OPT=-9 tar -Jcvf reports-${{ matrix.java-version }}-${{ matrix.os-name }}.tar.xz \
118
107
**/target/failsafe-reports/** \
119
108
**/target/surefire-reports/** \
120
109
**/target/site/jacoco/unit/jacoco*.xml \
@@ -124,10 +113,10 @@ jobs:
124
113
uses : actions/upload-artifact@v3
125
114
if : always()
126
115
with :
127
- name : zzz- reports-${{ matrix.java-version }}-${{ matrix.os-name }}
116
+ name : reports-${{ matrix.java-version }}-${{ matrix.os-name }}
128
117
if-no-files-found : error
129
- path : reports-${{ matrix.java-version }}-${{ matrix.os-name }}.tgz
130
- retention-days : 1
118
+ path : reports-${{ matrix.java-version }}-${{ matrix.os-name }}.tar.xz
119
+ retention-days : 30
131
120
132
121
mutation-tests :
133
122
name : Run mutation tests
@@ -149,21 +138,7 @@ jobs:
149
138
- name : Run mutation tests
150
139
shell : bash
151
140
# Do not run on multiple threads, the plugin does not support this properly.
152
- run : >-
153
- ./mvnw
154
- -B
155
- -e
156
- -T1
157
- -U
158
- --also-make
159
- -pl java-compiler-testing
160
- --no-transfer-progress
161
- -P mutation
162
- -Dstyle.color=always
163
- -Dcheckstyle.skip=true
164
- -Dlicense.skip=true
165
- -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
166
- test
141
+ run : ./mvnw -B -U -am -pl java-compiler-testing -P mutation -Dcheckstyle.skip=true -Dlicense.skip=true test
167
142
168
143
# Compress first so that the collection job later takes far less time (order of a few minutes
169
144
# or so). GitHub does not compress these until after the workflow finishes, meaning when
@@ -177,16 +152,16 @@ jobs:
177
152
set +f -x
178
153
# Allow globs to not match anything without causing errors.
179
154
shopt -s nullglob
180
-
181
- tar -czvf reports-mutation-tests.tgz **/target/pit-reports/pit-reports/**
155
+ # XZ with max compression, more efficient than using GZip.
156
+ XZ_OPT=-9 tar -Jcvf reports-mutation-tests.tar.xz **/target/pit-reports/pit-reports/**
182
157
183
158
- name : Stash reports tarball
184
159
uses : actions/upload-artifact@v3
185
160
if : always()
186
161
with :
187
- name : zzz- reports-mutation
162
+ name : reports-mutation-tests
188
163
if-no-files-found : error
189
- path : reports-mutation-tests.tgz
164
+ path : reports-mutation-tests.tar.xz
190
165
retention-days : 30
191
166
192
167
publish-test-reports :
@@ -211,19 +186,13 @@ jobs:
211
186
- name : Download stashed tarballs
212
187
uses : actions/download-artifact@v3
213
188
with :
214
- path : ' artifacts/reports-*.tgz '
189
+ path : ' artifacts/reports-*.tar.xz '
215
190
216
191
- name : Decompress stashed report tarballs
217
192
shell : bash
218
193
run : |-
219
- find artifacts/ -name "reports-*.tgz" -exec tar -xzvf {} \;
220
- find artifacts/ -name "reports-*.tgz" -exec rm -v {} \;
221
-
222
- - name : Delete temporary artifacts
223
- uses : geekyeggo/delete-artifact@v2
224
- with :
225
- name : ' zzz-reports-*'
226
- failOnError : false
194
+ find artifacts/ -name "reports-*.tar.xz" -exec tar -Jxvf {} \;
195
+ find artifacts/ -name "reports-*.tar.xz" -exec rm -v {} \;
227
196
228
197
- name : Publish test results
229
198
continue-on-error : true
@@ -261,25 +230,10 @@ jobs:
261
230
chmod -v +x codecov
262
231
./codecov -v
263
232
# TODO: upload unit test and integration test reports separately so that
264
- # codecov processes it correctly. Need to hardwire the paths in here somehow.
233
+ # codecov processes it correctly. Need to hard-wire the paths in here somehow.
265
234
#./codecov -c -F unit -v
266
235
#./codecov -c -F integration -v
267
236
268
- # Now we are finishing, GitHub will compress this properly.
269
- - name : Upload all reports in one archive
270
- uses : actions/upload-artifact@v3
271
- if : always()
272
- with :
273
- name : test-reports
274
- if-no-files-found : error
275
- path : |-
276
- **/target/pit-reports/pit-reports/**
277
- **/target/failsafe-reports/**
278
- **/target/surefire-reports/**
279
- **/target/site/jacoco/unit/jacoco*.xml
280
- **/target/site/jacoco/int/jacoco*.xml
281
- retention-days : 30
282
-
283
237
formatting :
284
238
name : Check formatting and licenses
285
239
runs-on : ubuntu-22.04
@@ -300,19 +254,12 @@ jobs:
300
254
- name : Run checks
301
255
shell : bash
302
256
run : >-
303
- ./mvnw
304
- -B
305
- -e
306
- -T1C
307
- -U
308
- --no-transfer-progress
257
+ ./mvnw -B -U
309
258
-DskipTests=true
310
- -Dstyle.color=always
311
259
-Dmaven.main.skip
312
260
-Dmaven.jar.skip
313
261
-Dmaven.resources.skip
314
262
-Dmaven.test.skip
315
- -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
316
263
verify
317
264
318
265
dependency-check :
@@ -336,21 +283,15 @@ jobs:
336
283
shell : bash
337
284
run : >-
338
285
./mvnw
339
- -B
340
- -e
341
- -T1C
342
- -U
343
- -Pdependency-check
344
- --no-transfer-progress
286
+ -B -U
287
+ -P dependency-check
345
288
-DskipTests=true
346
- -Dstyle.color=always
347
289
-Dcheckstyle.skip=true
348
290
-Dlicense.skip=true
349
291
-Dmaven.main.skip
350
292
-Dmaven.jar.skip
351
293
-Dmaven.resources.skip
352
294
-Dmaven.test.skip
353
- -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
354
295
verify
355
296
356
297
- name : Archive Dependency Scan reports
@@ -382,19 +323,10 @@ jobs:
382
323
- name : Generate JavaDocs
383
324
shell : bash
384
325
run : >-
385
- ./mvnw
386
- -B
387
- -e
388
- -T1C
389
- -U
390
- -pl java-compiler-testing
391
- --also-make
392
- --no-transfer-progress
326
+ ./mvnw -B -U -am -pl java-compiler-testing
393
327
-Dmaven.test.skip=true
394
328
-Dcheckstyle.skip=true
395
329
-Dlicense.skip=true
396
- -Dstyle.color=always
397
- -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
398
330
clean compile javadoc:jar
399
331
400
332
- name : Upload JavaDocs as a build artifact
@@ -424,4 +356,3 @@ jobs:
424
356
with :
425
357
name : github-pages
426
358
failOnError : false
427
-
0 commit comments