From 68629168a3a3a4981dab3002b599cbbf11079aa3 Mon Sep 17 00:00:00 2001 From: "James R. Perkins" Date: Wed, 17 Jan 2024 18:03:45 -0800 Subject: [PATCH] Upload the target if tests fail. Signed-off-by: James R. Perkins --- .github/workflows/maven.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d0c2a0cf..83e2b135 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -37,6 +37,11 @@ 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: 'target/*' format-check: runs-on: ubuntu-latest