File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -26,11 +26,18 @@ steps:
26
26
performMultiLevelLookup : true
27
27
28
28
- task : PowerShell@2
29
- displayName : Build and test
29
+ displayName : Build
30
30
inputs :
31
31
filePath : tools/azurePipelinesBuild.ps1
32
32
pwsh : ${{ parameters.pwsh }}
33
33
34
+ - task : PowerShell@2
35
+ displayName : Test
36
+ inputs :
37
+ targetType : inline
38
+ script : Invoke-Build Test
39
+ pwsh : ${{ parameters.pwsh }}
40
+
34
41
- task : PublishTestResults@2
35
42
displayName : Publish test results
36
43
inputs :
Original file line number Diff line number Diff line change @@ -161,15 +161,16 @@ Task SetupHelpForTests {
161
161
}
162
162
163
163
Task Build FindDotNet, CreateBuildInfo, {
164
+ # NOTE: We use /p:UseSharedCompilation=false to work around a bug with CodeQL.
164
165
Exec { & dotnet restore $VerbosityArgs }
165
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
166
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
166
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices\PowerShellEditorServices.csproj -f $script :NetRuntime.Standard }
167
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.PS7 }
167
168
if (-not $script :IsNix ) {
168
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
169
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.Hosting\PowerShellEditorServices.Hosting.csproj -f $script :NetRuntime.Desktop }
169
170
}
170
171
171
172
# Build PowerShellEditorServices.VSCode module
172
- Exec { & dotnet publish $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj -f $script :NetRuntime.Standard }
173
+ Exec { & dotnet publish / p:UseSharedCompilation = false $VerbosityArgs - c $Configuration .\src\PowerShellEditorServices.VSCode\PowerShellEditorServices.VSCode.csproj -f $script :NetRuntime.Standard }
173
174
}
174
175
175
176
Task Test TestServer, TestE2E
Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ Update-Help -Force -ErrorAction SilentlyContinue
20
20
Install-Module - Name InvokeBuild - RequiredVersion 5.9 .7 - Scope CurrentUser - Force
21
21
Install-Module - Name platyPS - RequiredVersion 0.14 .2 - Scope CurrentUser - Force
22
22
23
- Invoke-Build - Configuration Release
23
+ Invoke-Build - Configuration Release Build
You can’t perform that action at this time.
0 commit comments