From 8c2a9a91ef597d0c09a045500f0190436d7f9680 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 26 Jul 2020 16:48:03 +0530 Subject: [PATCH] github: upload test reports on failure Signed-off-by: Harsh Shandilya --- .github/workflows/pull_request.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 688ac96e..8306d009 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -92,3 +92,10 @@ jobs: adb shell settings put global transition_animation_scale 0 adb shell settings put global window_animation_scale 0 ./gradlew :app:connectedNonFreeDebugAndroidTest + + - name: (Fail-only) upload test report + if: failure() + uses: actions/upload-artifact@v2 + with: + name: Test report + path: app/build/reports