From befa8d4763e5f4ac3159c21f2ad5d4b3cc590bc7 Mon Sep 17 00:00:00 2001 From: Adam <152864218+adam-enko@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:07:17 +0200 Subject: [PATCH] GHA: Upload build reports on test failures (#3735) --- .github/workflows/tests-smoke.yml | 10 ++++++++++ .github/workflows/tests-thorough.yml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.github/workflows/tests-smoke.yml b/.github/workflows/tests-smoke.yml index 667f92526d..7a914284c4 100644 --- a/.github/workflows/tests-smoke.yml +++ b/.github/workflows/tests-smoke.yml @@ -34,3 +34,13 @@ jobs: run: > ./gradlew test --stacktrace --continue "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ env.JAVA_TEST_VERSION }}" + - name: Upload build reports + if: failure() + uses: actions/upload-artifact@v4 + with: + name: build-reports-${{ runner.os }}-${{ github.action }}-${{ github.run_id }} + path: | + **/build/reports/ + **/*.hprof + **/*.log + if-no-files-found: ignore diff --git a/.github/workflows/tests-thorough.yml b/.github/workflows/tests-thorough.yml index 6ade9f1b45..c50d9f53b1 100644 --- a/.github/workflows/tests-thorough.yml +++ b/.github/workflows/tests-thorough.yml @@ -32,3 +32,13 @@ jobs: run: > ./gradlew test --stacktrace --continue "-Porg.jetbrains.dokka.javaToolchain.testLauncher=${{ matrix.javaVersion }}" + - name: Upload build reports + if: failure() + uses: actions/upload-artifact@v4 + with: + name: build-reports-${{ runner.os }}-${{ github.action }}-${{ github.run_id }} + path: | + **/build/reports/ + **/*.hprof + **/*.log + if-no-files-found: ignore