From fb13a493c2b7704cca5dfbdf68748588fa914978 Mon Sep 17 00:00:00 2001 From: Mark Woon Date: Wed, 10 Jan 2024 22:17:41 -0800 Subject: [PATCH] chore: save test results on failure --- .github/workflows/ci-pharmcat.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci-pharmcat.yml b/.github/workflows/ci-pharmcat.yml index de67e5537..59befedf1 100644 --- a/.github/workflows/ci-pharmcat.yml +++ b/.github/workflows/ci-pharmcat.yml @@ -39,9 +39,23 @@ jobs: - name: Run PharmCAT tests run: ./gradlew test --no-daemon + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: ci-pharmcat-tests-jdk17 + path: build/reports/tests/test/index.html + if-no-files-found: ignore + - name: Run PharmCAT tests on Java 21 run: ./gradlew testOnJava21 --no-daemon + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: ci-pharmcat-tests-jdk21 + path: build/reports/tests/test/index.html + if-no-files-found: ignore + - name: Codecov uses: codecov/codecov-action@v3 with: