From dddb9e38f755912c62c84f9b03b3039cabcc0fdb Mon Sep 17 00:00:00 2001 From: takahirom Date: Tue, 30 Jul 2024 10:45:07 +0900 Subject: [PATCH] Check HShift 2 --- .github/workflows/CompareScreenshot.yml | 2 +- .../kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CompareScreenshot.yml b/.github/workflows/CompareScreenshot.yml index 4ed56fd1..57a485ab 100644 --- a/.github/workflows/CompareScreenshot.yml +++ b/.github/workflows/CompareScreenshot.yml @@ -7,7 +7,7 @@ permissions: {} jobs: compare-screenshot-test: - runs-on: macos-latest + runs-on: ubuntu-latest timeout-minutes: 20 permissions: diff --git a/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt b/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt index 273a7f3f..2770cee4 100644 --- a/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt +++ b/include-build/roborazzi-core/src/commonJvmMain/kotlin/com/github/takahirom/roborazzi/RoborazziOptions.kt @@ -129,7 +129,7 @@ data class RoborazziOptions( ) companion object { - val DefaultImageComparator = SimpleImageComparator(maxDistance = 0.007F) + val DefaultImageComparator = SimpleImageComparator(maxDistance = 0.007F, hShift = 2) val DefaultResultValidator = ThresholdValidator(0F) } }