Skip to content

Commit 4a5a892

Browse files
committed
Add upterm debugging to pipeline
1 parent eaeefa1 commit 4a5a892

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/ci-test.yml

+6
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
shell: pwsh
5252
run: ./pwsh/tools/install-powershell.ps1 -Daily
5353

54+
- name: If Debugging, start upterm for interactive pipeline troubleshooting
55+
if: ${{ runner.debug == 1 }}
56+
uses: lhotari/action-upterm@v1
57+
with:
58+
wait-timeout-minutes: 1
59+
5460
- name: Build and test
5561
shell: pwsh
5662
run: Invoke-Build -Configuration Release ${{ github.event_name == 'merge_group' && 'TestFull' || 'Test' }}

PowerShellEditorServices.build.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Task SetupHelpForTests {
239239
}
240240
}
241241

242-
Task TestPS74 Build, {
242+
Task TestPS74 Build, SetupHelpForTests, {
243243
Set-Location ./test/PowerShellEditorServices.Test/
244244
Invoke-BuildExec { & dotnet $script:dotnetTestArgs $script:NetFramework.PS74 }
245245
}

0 commit comments

Comments
 (0)