|
|
|
@ -247,7 +247,7 @@ jobs:
|
|
|
|
|
include:
|
|
|
|
|
- api-level: 27
|
|
|
|
|
profile: pixel_5
|
|
|
|
|
target: google_apis
|
|
|
|
|
target: default
|
|
|
|
|
- api-level: 33
|
|
|
|
|
profile: pixel_fold
|
|
|
|
|
target: google_apis
|
|
|
|
@ -322,6 +322,7 @@ jobs:
|
|
|
|
|
profile: ${{ matrix.profile }}
|
|
|
|
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
|
|
|
|
# Run tests, if they fail, record screenshots and exit with a failure
|
|
|
|
|
#TODO: Split the script in multiple lines (note that the action does some parsing that breaks multiline)
|
|
|
|
|
script:
|
|
|
|
|
set +e ; if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests --daemon ; then echo "All screenshot tests passed" ; else echo "Recording new goldens" ; ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace ; echo "newgoldens=true" >> $GITHUB_OUTPUT ; fi
|
|
|
|
|
|
|
|
|
|