Skip to content

Commit

Permalink
Ikke deploy apper ved kun endringer i test (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjerga authored Dec 16, 2024
1 parent d337fb1 commit 96b128c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,14 @@ tasks {
}

fun getBuildableProjects(): List<String> {
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 =
Expand Down

0 comments on commit 96b128c

Please sign in to comment.