@@ -263,11 +263,11 @@ Task SetupHelpForTests {
263263 }
264264 }
265265
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 }
269269 if ($LASTEXITCODE -ne 0 ) {
270- throw ' Failed to install PowerShell Daily help!'
270+ throw ' Failed to install PowerShell Preview help!'
271271 }
272272 }
273273
@@ -307,16 +307,17 @@ Task TestE2EPwsh Build, SetupHelpForTests, {
307307 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetFramework.PS74 }
308308}
309309
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 " }
312312} 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" }
314314}
315315
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"
317318 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) "
320321 Invoke-BuildExec { & dotnet $script :dotnetTestArgs $script :NetFramework.PS74 }
321322}
322323
@@ -394,6 +395,6 @@ Task BuildIfChanged -Inputs {
394395
395396Task Test TestPS74, TestE2EPwsh, TestPS51, TestE2EPowerShell
396397
397- Task TestFull Test, TestE2EDaily , TestE2EPwshCLM, TestE2EPowerShellCLM
398+ Task TestFull Test, TestE2EPreview , TestE2EPwshCLM, TestE2EPowerShellCLM
398399
399400Task . Clean , Build, Test
0 commit comments