mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-30 13:27:15 +08:00
Move CLI tests to the separate test file on Windows (#1363)
* move cli tests to the separate file * switch install scripts * unify CLI names
This commit is contained in:
@@ -6,16 +6,17 @@ function Get-PostgreSQLMarkdown
|
||||
$pgRoot = $pgPath.split('"')[1].replace("\bin\pg_ctl.exe", "")
|
||||
$env:Path += ";${env:PGBIN}"
|
||||
$pgVersion = (postgres --version).split()[2].Trim()
|
||||
$content = [PSCustomObject]@{
|
||||
Version = $pgVersion
|
||||
UserName = $env:PGUSER
|
||||
Password = $env:PGPASSWORD
|
||||
EnvironmentVariables = "PGBIN=$env:PGBIN; <br> PGDATA=$env:PGDATA; <br> PGROOT=$env:PGROOT"
|
||||
Path = $pgRoot
|
||||
ServiceName = $pgService.Name
|
||||
ServiceStatus = $pgService.State
|
||||
ServiceStartType = $pgService.StartMode
|
||||
} | New-MDTable
|
||||
|
||||
$content = @(
|
||||
[PSCustomObject]@{ Property = "ServiceName"; Value = $pgService.Name },
|
||||
[PSCustomObject]@{ Property = "Version"; Value = $pgVersion },
|
||||
[PSCustomObject]@{ Property = "ServiceStatus"; Value = $pgService.State },
|
||||
[PSCustomObject]@{ Property = "ServiceStartType"; Value = $pgService.StartMode },
|
||||
[PSCustomObject]@{ Property = "EnvironmentVariables"; Value = "`PGBIN=$env:PGBIN` <br> `PGDATA=$env:PGDATA` <br> `PGROOT=$env:PGROOT` " },
|
||||
[PSCustomObject]@{ Property = "Path"; Value = $pgRoot },
|
||||
[PSCustomObject]@{ Property = "UserName"; Value = $env:PGUSER },
|
||||
[PSCustomObject]@{ Property = "Password"; Value = $env:PGPASSWORD }
|
||||
) | New-MDTable
|
||||
|
||||
Build-MarkdownElement -Head $name -Content $content
|
||||
}
|
||||
|
||||
@@ -70,6 +70,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
$markdown += New-MDHeader "Tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-AzCosmosDBEmulatorVersion),
|
||||
(Get-AzCopyVersion),
|
||||
(Get-BazelVersion),
|
||||
(Get-BazeliskVersion),
|
||||
(Get-CMakeVersion),
|
||||
@@ -78,6 +79,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-DockerComposeVersion),
|
||||
(Get-GitVersion),
|
||||
(Get-GitLFSVersion),
|
||||
(Get-GoogleCloudSDKVersion),
|
||||
(Get-InnoSetupVersion),
|
||||
(Get-JQVersion),
|
||||
(Get-KubectlVersion),
|
||||
@@ -105,7 +107,6 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
$markdown += New-MDHeader "CLI Tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-AzureCLIVersion),
|
||||
(Get-AzCopyVersion),
|
||||
(Get-AzureDevopsExtVersion),
|
||||
(Get-AWSCLIVersion),
|
||||
(Get-AWSSAMVersion),
|
||||
@@ -113,7 +114,7 @@ $markdown += New-MDList -Style Unordered -Lines @(
|
||||
(Get-AlibabaCLIVersion),
|
||||
(Get-CloudFoundryVersion),
|
||||
(Get-HubVersion),
|
||||
(Get-GoogleCloudSDKVersion)
|
||||
(Get-GHVersion)
|
||||
)
|
||||
|
||||
$markdown += New-MDHeader "Rust Tools" -Level 3
|
||||
|
||||
@@ -220,4 +220,8 @@ function Get-GoogleCloudSDKVersion {
|
||||
|
||||
function Get-NewmanVersion {
|
||||
return "Newman $(newman --version)"
|
||||
}
|
||||
|
||||
function Get-GHVersion {
|
||||
return "GitHub CLI $(gh --version)"
|
||||
}
|
||||
Reference in New Issue
Block a user