Skip to content

Commit 1a2fa2a

Browse files
committed
debug-smoke
1 parent d343c90 commit 1a2fa2a

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

‎.github/workflows/smoke-test.yml‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
suite: [ "glassfish", "jetty", "liberty", "tomcat", "tomee", "wildfly"]
17-
fail-fast: true
17+
fail-fast: false
1818
steps:
1919
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
2020
- name: Check out code
@@ -49,3 +49,22 @@ jobs:
4949
env:
5050
JVM_OPTS: -Xmx1g --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED
5151
TERM: dumb
52+
53+
- name: print smoke test results
54+
if: failure()
55+
run: |
56+
for f in smoke-tests/build/test-results/test/*.xml; do
57+
echo "::group::$f"
58+
cat "$f"
59+
echo "::endgroup::"
60+
done
61+
62+
- name: upload smoke test reports
63+
if: always()
64+
uses: actions/upload-artifact@v4
65+
with:
66+
name: smoke-test-reports-${{ matrix.suite }}
67+
path: |
68+
smoke-tests/build/reports/tests/test/
69+
smoke-tests/build/test-results/test/
70+
if-no-files-found: ignore

‎smoke-tests/build.gradle.kts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ tasks.test {
3535
junitXml.isOutputPerTestCase = true
3636
}
3737

38+
testLogging {
39+
events("started", "passed", "skipped", "failed", "standard_out", "standard_error")
40+
showStandardStreams = true
41+
showExceptions = true
42+
showCauses = true
43+
showStackTraces = true
44+
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
45+
}
46+
3847
maxParallelForks = 2
3948

4049
var suites : HashMap<String, String>

0 commit comments

Comments
 (0)