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(