From 3314789daf1a7634c7f626b76abdb45ffd198fc8 Mon Sep 17 00:00:00 2001 From: Thomas Kioko Date: Mon, 23 Dec 2024 16:24:39 +0100 Subject: [PATCH] fix: Android screenshot test workflow regeneration Prevents unnecessary screenshot regeneration on every commit by: - Removing clean task from verification - Only running comparison on verification failure --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88e093aca..74e890f02 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -178,10 +178,11 @@ jobs: - name: Roborazzi screenshot tests id: screenshotsverify continue-on-error: true - run: ./gradlew clean verifyRoborazziDebug + run: ./gradlew verifyRoborazziDebug - name: Generate Roborazzi screenshot Report id: screenshots-report + if: steps.screenshotsverify.outcome == 'failure' continue-on-error: true run: ./gradlew compareRoborazziDebug