File tree Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Expand file tree Collapse file tree 3 files changed +13
-16
lines changed Original file line number Diff line number Diff line change @@ -2490,23 +2490,9 @@ jobs:
2490
2490
- name : SourceKit Validation
2491
2491
id : sourcekit-validation
2492
2492
working-directory : ${{ github.workspace }}/SourceCache/swift-win32
2493
- continue-on-error : true
2494
2493
run : |
2495
- $diagnosticOutput = $( $output = & Get-Content ${{ github.workspace }}/tests/sourcekit-lsp-initialization-message | sourcekit-lsp.exe ) 2>&1
2496
- if (-not ($diagnosticOutput -Match "Succeeded") -or -not ($diagnosticOutput -Match "InitializeResult")) {
2497
- Write-Host "sourcekit-lsp failed to initialize"
2498
- Write-Host $diagnosticOutput
2499
- echo "failed=true" >> $GITHUB_OUTPUT
2500
- } else {
2501
- echo "failed=false" >> $GITHUB_OUTPUT
2502
- }
2503
-
2504
- - name : SourceKit Validation Check
2505
- run : |
2506
- if (${{ steps.sourcekit-validation.outputs.failed == 'true' }}) {
2507
- Write-Host "sourcekit-lsp failed to initialize"
2508
- exit 1
2509
- }
2494
+ $SourcekitLspPath = (Resolve-Path sourcekit-lsp.exe).Path
2495
+ powershell.exe -File ${{ github.workspace }}/tests/sourcekit-lsp/initialization-test.ps1 -PathToSourcekitLsp $SourcekitLspPath
2510
2496
2511
2497
snapshot :
2512
2498
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ param (
2
+ [Parameter (Mandatory )]
3
+ [string ] $PathToSourcekitLsp
4
+ )
5
+
6
+ $diagnosticOutput = $ ( & Get-Content sourcekit- lsp- initialization- message | & $PathToSourcekitLsp ) 2>&1
7
+ if (-not ($diagnosticOutput -Match " Succeeded" ) -or -not ($diagnosticOutput -Match " InitializeResult" )) {
8
+ Write-Host " sourcekit-lsp failed to initialize"
9
+ Write-Host $diagnosticOutput
10
+ exit 1
11
+ }
File renamed without changes.
You can’t perform that action at this time.
0 commit comments