Skip to content

Commit e3a3987

Browse files
committed
Dump surefire/pitest reports on failure to debug Java 17 CI
1 parent bc6dd28 commit e3a3987

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/mvn.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,18 @@ jobs:
3434
- run: java -version
3535
- run: mvn -version
3636
- run: mvn --errors --batch-mode clean install -Pqulice
37+
- name: Dump test and pit reports on failure
38+
if: failure()
39+
shell: bash
40+
run: |
41+
set +e
42+
echo "=== surefire reports ==="
43+
for f in target/surefire-reports/*.txt target/surefire-reports/*.xml; do
44+
[ -f "$f" ] || continue
45+
echo "--- $f ---"
46+
cat "$f"
47+
done
48+
echo "=== pit-reports/index.html ==="
49+
[ -f target/pit-reports/index.html ] && cat target/pit-reports/index.html | head -200
50+
echo "=== qulice/checkstyle reports ==="
51+
find target -name "*.txt" -path "*qulice*" -exec cat {} \;

0 commit comments

Comments
 (0)