mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-18 07:46:45 +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)) {
|
if ((Test-IsWin16) -or (Test-IsWin19)) {
|
||||||
$toolsList += @(
|
$toolsList += @(
|
||||||
(Get-GoogleCloudSDKVersion)
|
(Get-GoogleCloudSDKVersion),
|
||||||
|
(Get-ServiceFabricSDKVersion)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
|
$markdown += New-MDList -Style Unordered -Lines ($toolsList | Sort-Object)
|
||||||
|
|||||||
@@ -249,6 +249,11 @@ function Get-GoogleCloudSDKVersion {
|
|||||||
(gcloud --version) -match "Google Cloud SDK"
|
(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 {
|
function Get-NewmanVersion {
|
||||||
return "Newman $(newman --version)"
|
return "Newman $(newman --version)"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -134,6 +134,10 @@ Describe "ServiceFabricSDK" -Skip:(Test-IsWin22) {
|
|||||||
It "PowerShell Module" {
|
It "PowerShell Module" {
|
||||||
Get-Module -Name ServiceFabric -ListAvailable | Should -Not -BeNullOrEmpty
|
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" {
|
Describe "Stack" {
|
||||||
|
|||||||
Reference in New Issue
Block a user