Skip to content

Commit

Permalink
Show JDK and check for Windows by RegEx
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Feb 5, 2024
1 parent d980a34 commit 9446db3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/test-java-os-mix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@ jobs:
- uses: actions/setup-java@v3
with:
distribution: temurin
# Always build with JDK 8 initially
java-version: ${{ matrix.java-version }}
- name: Execute integration test (on Unixes)
# if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
run: |
uname -a
./gradlew --version
./gradlew info
./gradlew integrationTestOnly --scan
# - name: Execute integration test (on Windows)
# if: ${{ runner.os == 'Windows' }}
# run: |
# uname -a
# gradlew --version
# gradlew integrationTestOnly --scan
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ allprojects {
println "projectDir : " + projectDir
println "groupId : " + project.group
println "targetCompatibility : " + java.targetCompatibility
println "OS : " + System.properties["os.name"]
println "Java VM Name : " + System.properties["java.vm.name"]
println "Java VM Vendor : " + System.properties["java.vm.vendor"]
println "Java VM Version : " + System.properties["java.vm.version"]
println "=" * 80
}
}
Expand Down Expand Up @@ -100,7 +104,7 @@ tasks.register("integrationTestOnly") {
doLast {
def result = exec {
workingDir INTEGRATION_TEST_DIRECTORY
commandLine System.getProperty("os.name") == "Windows" ? "gradlew.bat" : "./gradlew", "clean", "htmlSanityCheck", "-PhtmlSanityCheckVersion=${project.version}"
commandLine System.getProperty("os.name") ==~ "Windows" ? "gradlew.bat" : "./gradlew", "clean", "htmlSanityCheck", "-PhtmlSanityCheckVersion=${project.version}"
}
logger.debug "Script output: $result"
File integrationTestDirectory = file(INTEGRATION_TEST_DIRECTORY)
Expand Down

0 comments on commit 9446db3

Please sign in to comment.