From a9d494745d57f9321e8130ebfcc02a16e443c7ce Mon Sep 17 00:00:00 2001 From: Johannes Rudolph Date: Mon, 21 Feb 2022 14:25:12 +0100 Subject: [PATCH] build: archive test result for later analysis (#31146) --- .github/workflows/nightly-builds.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-builds.yml b/.github/workflows/nightly-builds.yml index 136005d0c0..1ffe6bdeb0 100644 --- a/.github/workflows/nightly-builds.yml +++ b/.github/workflows/nightly-builds.yml @@ -167,7 +167,14 @@ jobs: with: report_paths: '**/target/test-reports/TEST-*.xml' fail_if_no_tests: false - skip_publishing: true + + # Archive test results so we can do some diagnostics later + - name: Upload test results + uses: actions/upload-artifact@v2 + if: success() || failure() # run this step even if previous step failed + with: + name: test-results-${{ matrix.jdkVersion }}-${{ matrix.scalaVersion }} + path: '**/target/test-reports/TEST-*.xml' - name: Docs # Docs generation requires JDK 11. Checks with `startsWith` helps