|
|
@ -328,15 +328,9 @@ jobs:
|
|
|
|
then
|
|
|
|
then
|
|
|
|
echo "All screenshot tests passed"
|
|
|
|
echo "All screenshot tests passed"
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "Verification failed. Recording new reference images"
|
|
|
|
echo "Recording new goldens"
|
|
|
|
if ./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace
|
|
|
|
./gradlew connectedDemoDebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.google.samples.apps.nowinandroid.ui.InstrumentedScreenshotTests -Pdropshots.record --daemon --stacktrace
|
|
|
|
then
|
|
|
|
echo "newgoldens=true" >> $GITHUB_OUTPUT
|
|
|
|
echo "New goldens recorded, no issues"
|
|
|
|
|
|
|
|
echo "newgoldens=true" >> $GITHUB_OUTPUT
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
echo "Error while recording new goldens"
|
|
|
|
|
|
|
|
exit 5
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
- name: Prevent pushing new screenshots if this is a fork
|
|
|
|
- name: Prevent pushing new screenshots if this is a fork
|
|
|
|