From 0a1f4dd69fff5b0a34dd98b50b19212914ddada1 Mon Sep 17 00:00:00 2001 From: Adam Brown <adampsbrown@gmail.com> Date: Tue, 9 Nov 2021 11:32:13 +0000 Subject: [PATCH] adding screenshot pulling and storing as part of the sanity workflow --- .github/workflows/sanity_test.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sanity_test.yml b/.github/workflows/sanity_test.yml index 497504130e..496037984f 100644 --- a/.github/workflows/sanity_test.yml +++ b/.github/workflows/sanity_test.yml @@ -58,5 +58,14 @@ jobs: uses: reactivecircus/android-emulator-runner@v2 with: api-level: ${{ matrix.api-level }} - script: ./gradlew $CI_GRADLE_ARG_PROPERTIES -PallWarningsAsErrors=false connectedGplayDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest + script: | + ./gradlew $CI_GRADLE_ARG_PROPERTIES \ + -PallWarningsAsErrors=false \ + connectedGplayDebugAndroidTest \ + -Pandroid.testInstrumentationRunnerArguments.class=im.vector.app.ui.UiAllScreensSanityTest \ + || adb pull sdcard/Pictures/failure_screenshots + - uses: actions/upload-artifact@v2 + with: + name: failure-screenshots + path: failure_screenshots