From 751a276bf6fbe375954c64205ef1dc52236316a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Alc=C3=A9rreca?= Date: Thu, 23 May 2024 13:38:53 +0000 Subject: [PATCH] Now exit with a failure if there are new screenshots Change-Id: I441577bf92bab3e5a3606b87da30b5d8c8674ab4 --- .github/workflows/Build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yaml index 0d2b11afc..8df65466f 100644 --- a/.github/workflows/Build.yaml +++ b/.github/workflows/Build.yaml @@ -202,7 +202,7 @@ jobs: profile: pixel_5 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 - script: ./gradlew connectedDemoDebugAndroidTest --daemon || echo "Recording new screenshots" ; ./gradlew connectedDemoDebugAndroidTest -Pdropshots.record --daemon --stacktrace + script: ./gradlew connectedDemoDebugAndroidTest --daemon || echo "Recording new screenshots" ; ./gradlew connectedDemoDebugAndroidTest -Pdropshots.record --daemon --stacktrace ; exit $? - name: Prevent pushing new screenshots if this is a fork (instrumented) id: checkfork_screenshots_instrumented