File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ task Package {
73
73
}
74
74
75
75
task Test {
76
- Invoke-Pester - CI - Output Diagnostic
76
+ Invoke-Pester - CI
77
77
}
78
78
79
79
task Build BuildModule, BuildDocs
Original file line number Diff line number Diff line change 6
6
)
7
7
8
8
if ($PSRepository -eq " CFS" -and -not (Get-PSResourceRepository - Name CFS - ErrorAction SilentlyContinue)) {
9
- Register-PSResourceRepository - Name CFS - Uri " https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/powershell /nuget/v3/index.json"
9
+ Register-PSResourceRepository - Name CFS - Uri " https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror /nuget/v3/index.json"
10
10
}
11
11
12
- Install-PSResource - Repository $PSRepository - TrustRepository - Name InvokeBuild
13
- Install-PSResource - Repository $PSRepository - TrustRepository - Name platyPS
14
- Install-PSResource - Repository $PSRepository - TrustRepository - Name Pester
15
- Install-PSResource - Repository $PSRepository - TrustRepository - Name Microsoft.PowerShell.SecretManagement
12
+ # NOTE: Due to a bug in Install-PSResource with upstream feeds, we have to
13
+ # request an exact version. Otherwise, if a newer version is available in the
14
+ # upstream feed, it will fail to install any version at all.
15
+ Install-PSResource - Verbose - TrustRepository - RequiredResource @ {
16
+ InvokeBuild = @ {
17
+ version = " 5.12.1"
18
+ repository = $PSRepository
19
+ }
20
+ platyPS = @ {
21
+ version = " 0.14.2"
22
+ repository = $PSRepository
23
+ }
24
+ Pester = @ {
25
+ version = " 5.7.1"
26
+ repository = $PSRepository
27
+ }
28
+ " Microsoft.PowerShell.SecretManagement" = @ {
29
+ version = " 1.1.2"
30
+ repository = $PSRepository
31
+ }
32
+ }
You can’t perform that action at this time.
0 commit comments