From 5e286f3821b6637449c0f768203e107c67b25c91 Mon Sep 17 00:00:00 2001 From: Yuri Schimke Date: Sat, 24 Feb 2024 16:44:48 +0000 Subject: [PATCH] Bump high tolerance --- .github/workflows/build_workflow.main.kts | 14 +++++++++++++- .github/workflows/build_workflow.yaml | 7 +++++++ .../sample/watchfaces/ClockScreenshotTest.kt | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_workflow.main.kts b/.github/workflows/build_workflow.main.kts index a5ea783..621833d 100755 --- a/.github/workflows/build_workflow.main.kts +++ b/.github/workflows/build_workflow.main.kts @@ -4,6 +4,7 @@ import io.github.typesafegithub.workflows.actions.actions.CheckoutV4 import io.github.typesafegithub.workflows.actions.actions.SetupJavaV4 +import io.github.typesafegithub.workflows.actions.actions.UploadArtifactV4 import io.github.typesafegithub.workflows.actions.gradle.GradleBuildActionV3 import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest import io.github.typesafegithub.workflows.domain.triggers.PullRequest @@ -23,7 +24,10 @@ workflow( uses(name = "Check out", action = CheckoutV4()) uses( name = "Setup Java", - action = SetupJavaV4(distribution = SetupJavaV4.Distribution.Temurin, javaVersion = "17") + action = SetupJavaV4( + distribution = SetupJavaV4.Distribution.Temurin, + javaVersion = "17" + ) ) uses( name = "Build", @@ -31,5 +35,13 @@ workflow( arguments = "test", ) ) + uses( + name = "Upload reports", + action = UploadArtifactV4( + name = "Roborazzi", + path = listOf("app/build/outputs/roborazzi"), + retentionDays = UploadArtifactV4.RetentionPeriod.Default, + ) + ) } }.writeToFile() diff --git a/.github/workflows/build_workflow.yaml b/.github/workflows/build_workflow.yaml index eae7377..7668e89 100644 --- a/.github/workflows/build_workflow.yaml +++ b/.github/workflows/build_workflow.yaml @@ -41,3 +41,10 @@ jobs: uses: 'gradle/gradle-build-action@v3' with: arguments: 'test' + - id: 'step-3' + name: 'Upload reports' + uses: 'actions/upload-artifact@v4' + with: + name: 'Roborazzi' + path: 'app/build/outputs/roborazzi' + retention-days: '0' diff --git a/shared/src/test/kotlin/org/splitties/compose/oclock/sample/watchfaces/ClockScreenshotTest.kt b/shared/src/test/kotlin/org/splitties/compose/oclock/sample/watchfaces/ClockScreenshotTest.kt index 3f81dff..a64f7b3 100644 --- a/shared/src/test/kotlin/org/splitties/compose/oclock/sample/watchfaces/ClockScreenshotTest.kt +++ b/shared/src/test/kotlin/org/splitties/compose/oclock/sample/watchfaces/ClockScreenshotTest.kt @@ -34,7 +34,7 @@ abstract class ClockScreenshotTest { abstract val device: WearDevice // generous to allow for mac/linux differences - open val tolerance = 0.05f + open val tolerance = 0.01f open val roborazziOptions: RoborazziOptions get() = RoborazziOptions(