-
Notifications
You must be signed in to change notification settings - Fork 87
Setup Windows GH actions job #1195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
6bc2e36
Setup Windows GH actions job
award999 c307c6c
Install winget
award999 ea047a2
Disable WinGet prompts
award999 1196eaf
Refresh the env post installs
award999 6676db6
Move installation of deps to powershell scripts
award999 caa9d7e
Share docker-less setup with swiftlang github-workflows
award999 7578469
Point to branch in forked workflows repo
award999 7a6a8c4
Fix failing test case
award999 709c1bc
Fix plugin tasks provider tests
award999 658c758
Fix workspace context tests
award999 bde84a0
Some more plugin task test fixes
award999 cd8b272
Some depedency view test fixes
award999 39a5b92
Fix LSPTestDiscovery tests on Windows
plemarquand b2e64db
Strip ANSII from captured test output to fix swift-testing integratio…
plemarquand 261b251
Add expected issue ansi to test expectation
plemarquand 9d2aa39
Remove test issue failure suffix
plemarquand 2eabab2
Normalize diagnostics paths in tests
plemarquand 568c36e
Skip Sourcekit-lsp diagnostics test until nightly tests enabled
plemarquand 1988f69
Fixup diagnostics tests
plemarquand 0b94c96
Debug build run test
plemarquand 2d4259e
- Address launch config not being able to be found on windows
michael-weng 771d57d
Normalize file paths in PackageDependencyProvider tests
plemarquand aa0bb96
Ensure required codelldb extension is installed for integration tests
plemarquand 7c731ae
Dependencies test project must be built before test run
plemarquand f90b978
Fix missed assertion in PackageDependencyProvider tests
plemarquand 31106b3
Make dependency test timeout longer because Windows tests are running…
plemarquand d51c709
Remove mistakenly added file
plemarquand dfd5e52
Strip ANSI from messages during test issue output verification
plemarquand d4862ae
Address spm reset broken on windows after using local dependency
michael-weng 50b23ab
Strip ansi from the generated test message
plemarquand ecc48fb
Strip ANSI from XCTest output when parsing
plemarquand 32bc17d
Fixup test naming
plemarquand 01f4eec
Set env var for tests in a cross platform way
plemarquand 4032b10
Extension teardown in TestExplorerintegrationTest
plemarquand 994a377
Skip broken test on windows 5.9
plemarquand 79dab55
Fixup rebase issues
plemarquand dae0440
Skip build tests on Windows
plemarquand b308a8a
Return test explorer directly
plemarquand 511d0d3
Properly dispose of test explorer on folder context
plemarquand e7c7212
Disable swift-testing tests on 6.0 since it cannot produce JSON events
plemarquand 3f4ac2a
Improve error message when an error is thrown in before/beforeEach
plemarquand f4bc6ce
Add more logging on startup
plemarquand 64eb879
Disable LLDB tests on 6.0; lldb.exe wont launch in docker
plemarquand 9e6c628
Move extra logging to diagnostics getter
plemarquand f5f3360
Always clean up observe folders disposable
plemarquand bc91435
More robust activation tests
plemarquand cd1adf5
Disable lldb-dap tests on <6.0.2
plemarquand 2e7fb7d
Avoid folder events test improperly recording the defaultPackage addi…
plemarquand 469777e
Increase some timeouts
plemarquand fc54dea
Better package dep provider assertions
plemarquand f738646
Only configure test explorer once in tests
plemarquand 164907d
Improve folder add test again
plemarquand 09c94d3
Increate diagnostics test timeouts
plemarquand a90cc0e
Wait for diagnostics before building
plemarquand 72fd9cb
Final cleanup
plemarquand ef8544d
Switch back to swiftlang/github-workflows
plemarquand 1b98a55
Log in OutputChannel not console.log
plemarquand File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.