From 2cb5880a87c69a18af8d758a37288983fa480bc9 Mon Sep 17 00:00:00 2001 From: "Penn (Dapeng) Zhang" Date: Wed, 5 Jan 2022 09:17:51 -0800 Subject: [PATCH] .github/workflows: publish test results for failed job --- .github/workflows/testing.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index ea883a77b04..609d0841494 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -53,6 +53,13 @@ jobs: - name: Build run: buildscripts/kokoro/unix.sh + - name: Post Failure Upload Test Reports to Artifacts + if: ${{ failure() }} + uses: actions/upload-artifact@v2 + with: + name: Test Reports (JRE ${{ matrix.jre }}) + path: ./*/build/reports/tests/** + retention-days: 14 - name: Check for modified codegen run: test -z "$(git status --porcelain)" || (git status && echo Error Working directory is not clean. Forget to commit generated files? && false)