From 2a050ec4f9222a5d58a1f3a8a432c0fa14da1955 Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Fri, 21 Jul 2023 18:49:04 -0400 Subject: [PATCH] Save test reports when Gradle fails (#1299) --- .github/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf62638342..890a1324ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,6 +106,13 @@ jobs: run: | ./gradlew build + - name: Save Test Reports + if: failure() + uses: actions/upload-artifact@v3 + with: + name: test-reports + path: '**/build/reports' + publish: runs-on: macos-11 if: github.repository == 'square/okio' && github.ref == 'refs/heads/master'