From c779670695c0388dc0ff4bb5afc99cbf126d6f4c Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sun, 18 Aug 2024 16:40:59 +0200 Subject: [PATCH] WIP Yet another try ... --- .github/workflows/test-java-os-mix.yml | 31 ++++++++++++-------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/test-java-os-mix.yml b/.github/workflows/test-java-os-mix.yml index 1aa36389..a5e8c090 100644 --- a/.github/workflows/test-java-os-mix.yml +++ b/.github/workflows/test-java-os-mix.yml @@ -39,20 +39,12 @@ jobs: if: runner.os == 'Windows' shell: pwsh run: | - if (Test-Path env:ACTIONS_RUNNER_DEBUG) { - echo "GRADLE_DEBUG=--debug" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append + if ($env:ACTIONS_RUNNER_DEBUG) { + "GRADLE_DEBUG=--debug" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append Write-Output "Debug mode is enabled." } else { Write-Output "Debug mode is not enabled." } - - $debugMode = $env:ACTIONS_RUNNER_DEBUG - if ($debugMode -eq "true") { - echo "GRADLE_DEBUG=--debug" >> $env:GITHUB_ENV - echo "Debug mode is enabled." - } else { - echo "Debug mode is not enabled." - } - name: Check out uses: actions/checkout@v4 @@ -84,10 +76,9 @@ jobs: shell: pwsh run: | uname -a - cd integration-test + cd ./integration-test/ pwd - $gradle_debug = Get-Item "Env:GRADLE_DEBUG" - cmd /c "echo off && ..\gradlew.bat integrationTest --scan $gradle_debug" + cmd /c "echo off && ..\gradlew.bat integrationTest --scan $env:GRADLE_DEBUG" - name: Collect state upon failure (On Unix) if: failure() && runner.os != 'Windows' @@ -107,9 +98,15 @@ jobs: run: | echo "Git:" git status + echo "Env:" - env - echo "PWD:" - pwd + env | sort + + $currentDirectory = Get-Location + Write-Output "Current Directory: '$currentDirectory'" + echo "Files:" - Get-ChildItem -Recurse -File | Format-Table Name, Length, LastWriteTime \ No newline at end of file + $files = Get-ChildItem -Recurse -File + foreach ($file in $files) { + Write-Output $file.FullName + } \ No newline at end of file