diff --git a/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/yaml/ConsistencyCheckJob.kt b/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/yaml/ConsistencyCheckJob.kt index a53e2b84f..5e4ac2385 100644 --- a/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/yaml/ConsistencyCheckJob.kt +++ b/github-workflows-kt/src/main/kotlin/io/github/typesafegithub/workflows/yaml/ConsistencyCheckJob.kt @@ -129,7 +129,7 @@ private fun inferCheckoutActionVersionFromClasspath(checkoutActionClassFQN: Stri error( "actions/checkout is not found in the classpath! " + "Either add a dependency on it (`@file:DependsOn(\"actions:checkout:\")`), " + - "or don't use CheckoutActionVersionSource.InferFromClasspath()", + "or use another CheckoutActionVersionSource.", ) } as Class<*> // It's easier to call the primary constructor, even though it's private, because diff --git a/github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/IntegrationTest.kt b/github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/IntegrationTest.kt index 43568fbe4..083b0fec2 100644 --- a/github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/IntegrationTest.kt +++ b/github-workflows-kt/src/test/kotlin/io/github/typesafegithub/workflows/IntegrationTest.kt @@ -22,6 +22,7 @@ import io.kotest.assertions.throwables.shouldThrow import io.kotest.core.spec.style.FunSpec import io.kotest.engine.spec.tempdir import io.kotest.matchers.shouldBe +import io.kotest.matchers.string.shouldStartWith @OptIn(ExperimentalKotlinLogicStep::class) @Suppress("LargeClass") @@ -460,9 +461,7 @@ class IntegrationTest : } } }.also { - it.message shouldBe "actions/checkout is not found in the classpath! " + - "Either add a dependency on it (`@file:DependsOn(\"actions:checkout:\")`), " + - "or don't use CheckoutActionVersionSource.InferFromClasspath()" + it.message shouldStartWith "actions/checkout is not found in the classpath!" } }