@@ -263,11 +263,11 @@ Task SetupHelpForTests {
263
263
}
264
264
}
265
265
266
- if ($PwshDaily -and (Get-Command $PwshDaily - ea 0 )) {
267
- Write-Build DarkMagenta " Checking PowerShell Daily help at $PwshDaily "
268
- Invoke-BuildExec { & $PwshDaily - NoProfile - NonInteractive - Command $installHelpScript - args $helpPath }
266
+ if ($PwshPreview -and (Get-Command $PwshPreview - ea 0 )) {
267
+ Write-Build DarkMagenta " Checking PowerShell Preview help at $PwshPreview "
268
+ Invoke-BuildExec { & $PwshPreview - NoProfile - NonInteractive - Command $installHelpScript - args $helpPath }
269
269
if ($LASTEXITCODE -ne 0 ) {
270
- throw ' Failed to install PowerShell Daily help!'
270
+ throw ' Failed to install PowerShell Preview help!'
271
271
}
272
272
}
273
273
@@ -307,16 +307,17 @@ Task TestE2EPwsh Build, SetupHelpForTests, {
307
307
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetFramework.PS74 }
308
308
}
309
309
310
- $PwshDaily = if ($script :IsNix ) {
311
- " $HOME /.powershell-daily /pwsh"
310
+ if ($env: GITHUB_ACTIONS ) {
311
+ $PwshPreview = if ( $ script :IsNix ) { " $PSScriptRoot /preview /pwsh" } else { " $PSScriptRoot /preview/pwsh.exe " }
312
312
} else {
313
- " $ env: LOCALAPPDATA /Microsoft/powershell-daily /pwsh.exe"
313
+ $PwshPreview = if ( $ script :IsNix ) { " $HOME /.powershell-preview/pwsh " } else { " $ env: LOCALAPPDATA /Microsoft/powershell-preview /pwsh.exe" }
314
314
}
315
315
316
- Task TestE2EDaily - If (Test-Path $PwshDaily ) Build, SetupHelpForTests, {
316
+ Task TestE2EPreview Build, SetupHelpForTests, {
317
+ Assert (Test-Path $PwshPreview ) " PowerShell Preview not found at $PwshPreview , please install it: https://github.com/PowerShell/PowerShell/blob/master/tools/install-powershell.ps1"
317
318
Set-Location ./ test/ PowerShellEditorServices.Test.E2E/
318
- $env: PWSH_EXE_NAME = $PwshDaily
319
- Write-Build DarkGreen " Running end-to-end tests with: $ ( & $PwshDaily -- version) "
319
+ $env: PWSH_EXE_NAME = $PwshPreview
320
+ Write-Build DarkGreen " Running end-to-end tests with: $ ( & $PwshPreview -- version) "
320
321
Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetFramework.PS74 }
321
322
}
322
323
@@ -394,6 +395,6 @@ Task BuildIfChanged -Inputs {
394
395
395
396
Task Test TestPS74, TestE2EPwsh, TestPS51, TestE2EPowerShell
396
397
397
- Task TestFull Test, TestE2EDaily , TestE2EPwshCLM, TestE2EPowerShellCLM
398
+ Task TestFull Test, TestE2EPreview , TestE2EPwshCLM, TestE2EPowerShellCLM
398
399
399
400
Task . Clean , Build, Test
0 commit comments