Skip to content

Commit ad4a1d1

Browse files
Reapply "Set working directory for integration test steps"
This reverts commit 72701e0.
1 parent 72701e0 commit ad4a1d1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build-release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,17 @@ jobs:
201201
New-Item -ItemType Directory -Path /tmp/DbatoolsExport -Force | Out-Null
202202
}
203203
204+
- name: Debug working directory
205+
shell: pwsh
206+
run: |
207+
Write-Host "Current working directory: $(Get-Location)"
208+
Write-Host "Repository workspace: ${{ github.workspace }}"
209+
Write-Host "Script path to execute: ${{ matrix.script }}"
210+
Write-Host "Full script path: ${{ github.workspace }}/${{ matrix.script }}"
211+
204212
- name: Run integration tests (PowerShell Core)
205213
shell: pwsh
214+
working-directory: ${{ github.workspace }}
206215
run: |
207216
Import-Module ./artifacts/dbatools.library/dbatools.library.psd1 -Force
208217
Import-Module ./dbatools/dbatools.psd1 -Force
@@ -213,6 +222,7 @@ jobs:
213222
- name: Run integration tests (Windows PowerShell)
214223
if: matrix.os == 'windows-latest'
215224
shell: powershell
225+
working-directory: ${{ github.workspace }}
216226
run: |
217227
Import-Module ./artifacts/dbatools.library/dbatools.library.psd1 -Force
218228
Import-Module ./dbatools/dbatools.psd1 -Force

0 commit comments

Comments
 (0)