File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -352,18 +352,23 @@ if (!$Clippy -and !$SkipBuild) {
352
352
if ($Test ) {
353
353
$failed = $false
354
354
355
+ if ($null -eq (Get-PSResourceRepository - Name CFS - ErrorAction Ignore)) {
356
+ " Registering CFS repository"
357
+ Register-PSResourceRepository - uri ' https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell/nuget/v2' - Name CFS - Trusted
358
+ }
359
+
355
360
if ($IsWindows ) {
356
361
# PSDesiredStateConfiguration module is needed for Microsoft.Windows/WindowsPowerShell adapter
357
362
$FullyQualifiedName = @ {ModuleName = " PSDesiredStateConfiguration" ;ModuleVersion = " 2.0.7" }
358
363
if (-not (Get-Module - ListAvailable - FullyQualifiedName $FullyQualifiedName ))
359
364
{ " Installing module PSDesiredStateConfiguration 2.0.7"
360
- Install-PSResource - Name PSDesiredStateConfiguration - Version 2.0 .7 - Repository PSGallery - TrustRepository
365
+ Install-PSResource - Name PSDesiredStateConfiguration - Version 2.0 .7 - Repository CFS
361
366
}
362
367
}
363
368
364
369
if (-not (Get-Module - ListAvailable - Name Pester))
365
370
{ " Installing module Pester"
366
- Install-PSResource Pester - WarningAction Ignore - Repository PSGallery - TrustRepository
371
+ Install-PSResource Pester - WarningAction Ignore - Repository CFS
367
372
}
368
373
369
374
foreach ($project in $projects ) {
You can’t perform that action at this time.
0 commit comments