mirror of
https://github.com/actions/runner-images.git
synced 2025-12-16 06:40:32 +00:00
[Windows] Add Service Fabric SDK to Software Report (#4563)
This commit is contained in:
@@ -120,7 +120,8 @@ $toolsList = @(
|
||||
)
|
||||
if ((Test-IsWin16) -or (Test-IsWin19)) {
|
||||
$toolsList += @(
|
||||
(Get-GoogleCloudSDKVersion)
|
||||
(Get-GoogleCloudSDKVersion),
|
||||
(Get-ServiceFabricSDKVersion)
|
||||
)
|
||||
}
|
||||
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
|
||||
|
||||
@@ -249,6 +249,11 @@ function Get-GoogleCloudSDKVersion {
|
||||
(gcloud --version) -match "Google Cloud SDK"
|
||||
}
|
||||
|
||||
function Get-ServiceFabricSDKVersion {
|
||||
$serviceFabricSDKVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion
|
||||
return "Service Fabric SDK $serviceFabricSDKVersion"
|
||||
}
|
||||
|
||||
function Get-NewmanVersion {
|
||||
return "Newman $(newman --version)"
|
||||
}
|
||||
|
||||
@@ -134,6 +134,10 @@ Describe "ServiceFabricSDK" -Skip:(Test-IsWin22) {
|
||||
It "PowerShell Module" {
|
||||
Get-Module -Name ServiceFabric -ListAvailable | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "ServiceFabricSDK version" {
|
||||
Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion | Should -Not -BeNullOrEmpty
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Stack" {
|
||||
|
||||
Reference in New Issue
Block a user