Skip to content

Commit

Permalink
Try to find files in current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Mar 29, 2024
1 parent 8dd588c commit 098c699
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/test-java-os-mix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,22 @@ jobs:
distribution: temurin
java-version: ${{ matrix.java-version }}

- name: Execute integration test
- name: Execute integration test (Unix)
if: runner.os != 'Windows'
run: |
uname -a
find * -ls
./gradlew --version
./gradlew info
./gradlew integrationTestOnly --scan
- name: Execute integration test (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
uname -a
Get-ChildItem -Recurse -File | Format-Table Name, Length, LastWriteTime
cmd /c "echo off && gradlew.bat --version"
cmd /c "echo off && gradlew.bat info"
cmd /c "echo off && gradlew.bat integrationTestOnly --scan"
Get-ChildItem -Recurse -File ./integration-test | Format-Table Name, Length, LastWriteTime
8 changes: 6 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,12 @@ tasks.register("integrationTestCliOnly") {
workingDir INTEGRATION_TEST_DIRECTORY_CLI
file(BUILD_REPORTS_DIRECTORY).mkdirs()
String hscScriptFileName = "../../htmlSanityCheck-cli/${Project.DEFAULT_BUILD_DIR_NAME}/install/hsc/bin/hsc"
commandLine System.getProperty("os.name") ==~ /Windows.*/ ? "${hscScriptFileName.replace('/', '\\')}.bat" : hscScriptFileName,
"-r", BUILD_REPORTS_DIRECTORY, "../common/src/test/resources"
String params = "-r ${BUILD_REPORTS_DIRECTORY} ../common/src/test/resources"
if (System.getProperty("os.name") ==~ /Windows.*/) {
commandLine 'cmd', '/c', "echo off && ${hscScriptFileName.replace('/', '\\')}.bat ${params}"
} else {
commandLine 'sh', '-c', "${hscScriptFileName} ${params}"
}
}
logger.debug "Script output: ${result}"
assert testIndex.exists()
Expand Down

0 comments on commit 098c699

Please sign in to comment.