diff --git a/build.gradle.kts b/build.gradle.kts index 0fc863f0f..a9371f45e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -155,11 +155,14 @@ tasks { } fun getBuildableProjects(): List { + val testfilRegex = Regex("^[\\w-]+/src/test.+") + val changedFiles = System .getenv("CHANGED_FILES") ?.takeIf(String::isNotBlank) ?.split(",") + ?.filterNot(testfilRegex::matches) ?: throw IllegalStateException("Ingen endrede filer funnet.") val hasCommonChanges =