From a1061e1fceaebed19f48ef493c3f780e4f3ed605 Mon Sep 17 00:00:00 2001 From: "James R. Perkins" Date: Wed, 17 Jan 2024 18:03:45 -0800 Subject: [PATCH] Upload the test reports if tests fail. Signed-off-by: James R. Perkins --- .github/workflows/maven.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d0c2a0cf..d497cb94 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -37,6 +37,13 @@ jobs: 21 - name: Build and Test run: mvn -B clean verify "-Djava11.home=${{env.JAVA_HOME_11_X64}}" "-Djava17.home=${{env.JAVA_HOME_17_X64}}" + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-reports-${{ matrix.os }} + path: | + '**/surefire-reports/*' + '**/failsafe-reports/*' format-check: runs-on: ubuntu-latest