Skip to content

Commit 0ad7bc8

Browse files
committed
Run unit tests in OneBranch container
1 parent 28dba24 commit 0ad7bc8

File tree

1 file changed

+2
-46
lines changed

1 file changed

+2
-46
lines changed

.pipelines/vscode-powershell-Official.yml

Lines changed: 2 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ extends:
109109
displayName: PowerShellEditorServices version
110110
- pwsh: ./tools/installPSResources.ps1 -PSRepository CFS
111111
displayName: Install PSResources
112-
- pwsh: Invoke-Build Build -Configuration $(BuildConfiguration)
113-
displayName: Build
112+
- pwsh: Invoke-Build Test -Configuration $(BuildConfiguration)
113+
displayName: Build and test
114114
- task: onebranch.pipeline.signing@1
115115
displayName: Sign 1st-party example PowerShell files
116116
inputs:
@@ -132,50 +132,6 @@ extends:
132132
search_root: $(Build.SourcesDirectory)/out
133133
files_to_sign: |
134134
*.signature.p7s;
135-
- job: test
136-
displayName: Build and run tests
137-
pool:
138-
type: windows
139-
isCustom: true
140-
name: Azure Pipelines
141-
vmImage: windows-latest
142-
variables:
143-
ob_outputDirectory: $(Build.SourcesDirectory)/out
144-
skipComponentGovernanceDetection: true
145-
steps:
146-
- task: UseNode@1
147-
displayName: Use Node 20.x
148-
inputs:
149-
version: 20.x
150-
- task: UseDotNet@2
151-
displayName: Use .NET 8.x SDK
152-
inputs:
153-
packageType: sdk
154-
version: 8.x
155-
- task: DownloadPipelineArtifact@2
156-
displayName: Download PowerShellEditorServices
157-
inputs:
158-
source: specific
159-
project: PowerShellCore
160-
definition: 2905
161-
specificBuildWithTriggering: true
162-
allowPartiallySucceededBuilds: true
163-
buildVersionToDownload: latestFromBranch
164-
branchName: refs/heads/main
165-
artifact: drop_build_main
166-
- task: ExtractFiles@1
167-
displayName: Extract PowerShellEditorServices
168-
inputs:
169-
archiveFilePatterns: $(Pipeline.Workspace)/PowerShellEditorServices.zip
170-
destinationFolder: $(Build.SourcesDirectory)/modules
171-
- pwsh: |
172-
$manifest = Test-ModuleManifest $(Build.SourcesDirectory)/modules/PowerShellEditorServices/PowerShellEditorServices.psd1
173-
Write-Host Using PowerShellEditorServices v$($manifest.Version)
174-
displayName: PowerShellEditorServices version
175-
- pwsh: ./tools/installPSResources.ps1 -PSRepository CFS
176-
displayName: Install PSResources
177-
- pwsh: Invoke-Build Test -Configuration $(BuildConfiguration)
178-
displayName: Run tests
179135
- stage: release
180136
dependsOn: build
181137
condition: eq(variables['Build.Reason'], 'Manual')

0 commit comments

Comments
 (0)