1
- parameters :
2
- - name : pwsh
3
- type : boolean
4
- default : true
5
-
6
1
steps :
7
2
- task : PowerShell@2
8
3
displayName : PowerShell version
9
4
inputs :
10
5
targetType : inline
6
+ pwsh : true
11
7
script : $PSVersionTable
12
- pwsh : ${{ parameters.pwsh }}
13
8
14
9
- task : UseDotNet@2
15
10
displayName : Install .NET 7.0.x SDK
@@ -25,18 +20,25 @@ steps:
25
20
version : 6.0.x
26
21
performMultiLevelLookup : true
27
22
23
+ - task : PowerShell@2
24
+ displayName : Install PSResources
25
+ inputs :
26
+ pwsh : true
27
+ filePath : tools/installPSResources.ps1
28
+
28
29
- task : PowerShell@2
29
30
displayName : Build
30
31
inputs :
31
- filePath : tools/azurePipelinesBuild.ps1
32
- pwsh : ${{ parameters.pwsh }}
32
+ targetType : inline
33
+ pwsh : true
34
+ script : Invoke-Build Build -Configuration Release
33
35
34
36
- task : PowerShell@2
35
37
displayName : Test
36
38
inputs :
37
39
targetType : inline
40
+ pwsh : true
38
41
script : Invoke-Build Test -Configuration Release
39
- pwsh : ${{ parameters.pwsh }}
40
42
41
43
- task : PublishTestResults@2
42
44
displayName : Publish test results
@@ -49,13 +51,13 @@ steps:
49
51
displayName : Assert PowerShellEditorServices release configuration
50
52
inputs :
51
53
targetType : inline
54
+ pwsh : true
52
55
script : |
53
56
$assembly = [Reflection.Assembly]::LoadFile("$(Build.SourcesDirectory)/module/PowerShellEditorServices.VSCode/bin/Microsoft.PowerShell.EditorServices.VSCode.dll")
54
57
if ($assembly.GetCustomAttributes([System.Diagnostics.DebuggableAttribute], $true).IsJITOptimizerDisabled) {
55
58
Write-Host "##vso[task.LogIssue type=error;] PowerShell Editor Services bits were not built in release configuration!"
56
59
exit 1
57
60
}
58
- pwsh : ${{ parameters.pwsh }}
59
61
60
62
# NOTE: We zip the artifacts because they're ~20 MB compressed, but ~300 MB raw,
61
63
# and we have limited pipeline artifact storage space.
0 commit comments