adding screenshot pulling and storing as part of the sanity workflow

This commit is contained in:
Adam Brown 2021-11-09 11:32:13 +00:00
parent 2583a6d6bf
commit 0a1f4dd69f

View File

@ -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