Skip to content

Commit

Permalink
Bump high tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Feb 24, 2024
1 parent 97d94ad commit 5e286f3
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/build_workflow.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,13 +24,24 @@ 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",
action = GradleBuildActionV3(
arguments = "test",
)
)
uses(
name = "Upload reports",
action = UploadArtifactV4(
name = "Roborazzi",
path = listOf("app/build/outputs/roborazzi"),
retentionDays = UploadArtifactV4.RetentionPeriod.Default,
)
)
}
}.writeToFile()
7 changes: 7 additions & 0 deletions .github/workflows/build_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5e286f3

Please sign in to comment.