-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add concurrency in maven and gradle functional testing workflows
- Loading branch information
Showing
6 changed files
with
99 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,6 +41,7 @@ | |
|
||
plugins { | ||
`kotlin-dsl` | ||
`groovy-gradle-plugin` | ||
} | ||
|
||
repositories { | ||
|
37 changes: 37 additions & 0 deletions
37
build-logic/common-plugins/src/main/groovy/org.graalvm.build.github-actions-helper.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import groovy.json.JsonOutput | ||
|
||
import java.nio.file.Files | ||
|
||
def matrixDefault = [ | ||
"gradle-version": ["current", "7.4"], | ||
"gradle-config-cache-version": ["current", "8.0.1"], | ||
// # Following versions are disabled temporarily in order to speed up PR testing "7.3.3", "7.2", "7.1", "6.8.3", | ||
"java-version": [ "17" ], | ||
"os": [ "ubuntu-20.04" ] | ||
] | ||
|
||
sourceSets.configureEach { sourceSet -> | ||
if (sourceSet.name == 'functionalTest') { | ||
tasks.register("dumpFunctionalTestList") { | ||
doLast { | ||
def matrix = [ | ||
test: [] | ||
] | ||
matrix.putAll(matrixDefault) | ||
sourceSet.allSource.each { | ||
matrix.test << it.name.substring(0, it.name.lastIndexOf('.')) | ||
} | ||
|
||
String githubOut = System.getenv("GITHUB_OUTPUT") | ||
if (githubOut != null) { | ||
new File(githubOut).withWriterAppend { | ||
it.println "matrix=${JsonOutput.toJson(matrix)}" | ||
} | ||
} else { | ||
println "Warning: GITHUB_OUTPUT environment variable not found" | ||
} | ||
println "Build Matrix: $matrix" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters