Skip to content

Commit

Permalink
optimize ci
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-rad committed Apr 16, 2024
1 parent 7d0eec3 commit 42e3760
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ jobs:
#Run regression tests
- name: Run regression test 2.7
run: |
./gradlew --stacktrace -PweaveTestSuiteVersion=2.7.0-SNAPSHOT native-cli-integration-tests:test
./gradlew --stacktrace -PweaveTestSuiteVersion=2.7.0-SNAPSHOT -DweaveSuiteVersion=2.7.0-SNAPSHOT native-cli-integration-tests:test
shell: bash
#Run regression tests
- name: Run regression test 2.6
run: |
./gradlew --stacktrace -PweaveTestSuiteVersion=2.6.1 native-cli-integration-tests:test
./gradlew --stacktrace -PweaveTestSuiteVersion=2.6.1 -DweaveSuiteVersion=2.6.1 native-cli-integration-tests:test
shell: bash
- name: Run regression test 2.4
run: |
./gradlew --stacktrace -PweaveTestSuiteVersion=2.4.0-HF-SNAPSHOT native-cli-integration-tests:test
./gradlew --stacktrace -PweaveTestSuiteVersion=2.4.0-HF-SNAPSHOT -DweaveSuiteVersion=2.4.0-HF-SNAPSHOT native-cli-integration-tests:test
shell: bash

# Generate distro
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ class NativeCliRuntimeIT extends AnyFunSpec
private val INPUT_FILE_PATTERN = Pattern.compile("in[0-9]+\\.[a-zA-Z]+")
private val OUTPUT_FILE_PATTERN = Pattern.compile("out\\.[a-zA-Z]+")

private val versionString: String = DataWeaveVersion(ComponentVersion.weaveSuiteVersion).toString()
private val versionString: String = DataWeaveVersion(System.getProperty("weaveSuiteVersion", ComponentVersion.weaveVersion)).toString()

val testSuites = Seq(
TestSuite("master", loadTestZipFile(s"weave-suites/runtime-${ComponentVersion.weaveSuiteVersion}-test.zip")),
TestSuite("yaml", loadTestZipFile(s"weave-suites/yaml-module-${ComponentVersion.weaveSuiteVersion}-test.zip"))
TestSuite("master", loadTestZipFile(s"weave-suites/runtime-$versionString-test.zip")),
TestSuite("yaml", loadTestZipFile(s"weave-suites/yaml-module-$versionString-test.zip"))
)

private def loadTestZipFile(testSuiteExample: String): File = {
Expand All @@ -72,6 +72,8 @@ class NativeCliRuntimeIT extends AnyFunSpec
zipFile
}

println(s"********************** Running suite with DW suite version: $versionString **********************")

testSuites.foreach {
testSuite => {
val wd = Files.createTempDirectory(testSuite.name).toFile
Expand Down
1 change: 0 additions & 1 deletion native-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ task genVersions() {
outputPrinter.println("object ComponentVersion {")
outputPrinter.println("\tval weaveVersion = \"" + weaveVersion + "\"")
outputPrinter.println("\tval nativeVersion = \"" + nativeVersion + "\"")
outputPrinter.println("\tval weaveSuiteVersion = \"" + weaveTestSuiteVersion + "\"")
outputPrinter.println("}")
outputPrinter.close()
}
Expand Down

0 comments on commit 42e3760

Please sign in to comment.