mirror of
https://github.com/actions/runner-images.git
synced 2026-01-07 18:58:13 +08:00
[Windows] Remove hub utility (#8365)
This commit is contained in:
committed by
GitHub
parent
f05152105f
commit
9f764f7429
@@ -35,10 +35,6 @@ Update-SessionEnvironment
|
||||
|
||||
git config --system --add safe.directory "*"
|
||||
|
||||
# Install hub with --ignore-dependencies option to prevent the installation of the git package.
|
||||
# See details in https://github.com/actions/runner-images/issues/2375
|
||||
Choco-Install -PackageName hub -ArgumentList "--ignore-dependencies"
|
||||
|
||||
# Disable GCM machine-wide
|
||||
[Environment]::SetEnvironmentVariable("GCM_INTERACTIVE", "Never", [System.EnvironmentVariableTarget]::Machine)
|
||||
|
||||
@@ -50,4 +46,3 @@ ssh-keyscan -t rsa,ecdsa,ed25519 github.com >> "C:\Program Files\Git\etc\ssh\ssh
|
||||
ssh-keyscan -t rsa ssh.dev.azure.com >> "C:\Program Files\Git\etc\ssh\ssh_known_hosts"
|
||||
|
||||
Invoke-PesterTests -TestFile "Git"
|
||||
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "Hub CLI"
|
||||
|
||||
@@ -118,7 +118,6 @@ if (Test-IsWin19) {
|
||||
$cliTools.AddToolVersion("Cloud Foundry CLI", $(Get-CloudFoundryVersion))
|
||||
}
|
||||
$cliTools.AddToolVersion("GitHub CLI", $(Get-GHVersion))
|
||||
$cliTools.AddToolVersion("Hub CLI", $(Get-HubVersion))
|
||||
|
||||
# Rust Tools
|
||||
Initialize-RustEnvironment
|
||||
|
||||
@@ -232,12 +232,6 @@ function Get-CloudFoundryVersion {
|
||||
return $cfVersion
|
||||
}
|
||||
|
||||
function Get-HubVersion {
|
||||
($(hub version) | Select-String -Pattern "hub version") -match "hub version (?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$hubVersion = $Matches.Version
|
||||
return $hubVersion
|
||||
}
|
||||
|
||||
function Get-7zipVersion {
|
||||
(7z | Out-String) -match "7-Zip (?<version>\d+\.\d+\.?\d*)" | Out-Null
|
||||
$version = $Matches.Version
|
||||
|
||||
@@ -48,9 +48,3 @@ Describe "CloudFoundry CLI" -Skip:(Test-IsWin22) {
|
||||
"cf --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Hub CLI" {
|
||||
It "hub is installed" {
|
||||
"hub --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user