-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup Windows GH actions job (#1195)
* Setup Windows GH actions jobs We cannot use the existing windows job setup because it launches a docker container which we cannot open a VS Code window in to run the tests as no tool like Xvfb exists for Windows This patch goes through and fixes up tests and behaviours that were incorrect on Windows. Co-authored-by: Paul LeMarquand <[email protected]> Co-authored-by: Michael (SPG) Weng <[email protected]>
- Loading branch information
1 parent
e7f81c9
commit 3c116a4
Showing
30 changed files
with
571 additions
and
319 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$NODEJS='https://nodejs.org/dist/v18.20.4/node-v18.20.4-x64.msi' | ||
$NODEJS_SHA256='c2654d3557abd59de08474c6dd009b1d358f420b8e4010e4debbf130b1dfb90a' | ||
Set-Variable ErrorActionPreference Stop | ||
Set-Variable ProgressPreference SilentlyContinue | ||
Write-Host -NoNewLine ('Downloading {0} ... ' -f ${NODEJS}) | ||
Invoke-WebRequest -Uri ${NODEJS} -OutFile $env:TEMP\node.msi | ||
Write-Host 'SUCCESS' | ||
Write-Host -NoNewLine ('Verifying SHA256 ({0}) ... ' -f ${NODEJS_SHA256}) | ||
$Hash = Get-FileHash $env:TEMP\node.msi -Algorithm sha256 | ||
if ($Hash.Hash -eq ${NODEJS_SHA256}) { | ||
Write-Host 'SUCCESS' | ||
} else { | ||
Write-Host ('FAILED ({0})' -f $Hash.Hash) | ||
exit 1 | ||
} | ||
Write-Host -NoNewLine 'Installing node.js for Windows ... ' | ||
$Process = Start-Process msiexec "/i $env:TEMP\node.msi /norestart /qn" -Wait -PassThru | ||
if ($Process.ExitCode -eq 0) { | ||
Write-Host 'SUCCESS' | ||
} else { | ||
Write-Host ('FAILED ({0})' -f $Process.ExitCode) | ||
exit 1 | ||
} | ||
Remove-Item -Force $env:TEMP\node.msi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$env:CI = "1" | ||
$env:FAST_TEST_RUN = "1" | ||
npm ci -ignore-script node-pty | ||
npm run lint | ||
npm run format | ||
npm run package | ||
$Process = Start-Process npm "run integration-test" -Wait -PassThru -NoNewWindow | ||
if ($Process.ExitCode -eq 0) { | ||
Write-Host 'SUCCESS' | ||
} else { | ||
Write-Host ('FAILED ({0})' -f $Process.ExitCode) | ||
exit 1 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.