Skip to content

Commit

Permalink
WIP Yet another try ...
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Aug 18, 2024
1 parent ef2feaa commit c779670
Showing 1 changed file with 14 additions and 17 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/test-java-os-mix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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'
Expand All @@ -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
$files = Get-ChildItem -Recurse -File
foreach ($file in $files) {
Write-Output $file.FullName
}

0 comments on commit c779670

Please sign in to comment.