mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Install Azure DevOps extension for AZ CLI (#5057)
This commit is contained in:
committed by
GitHub
parent
8dfa279755
commit
cd64c6838e
@@ -19,6 +19,9 @@ done
|
|||||||
# Invoke bazel to download bazel version via bazelisk
|
# Invoke bazel to download bazel version via bazelisk
|
||||||
bazel
|
bazel
|
||||||
|
|
||||||
|
# Install Azure DevOps extension for Azure Command Line Interface
|
||||||
|
az extension add -n azure-devops
|
||||||
|
|
||||||
# Workaround https://github.com/actions/virtual-environments/issues/4931
|
# Workaround https://github.com/actions/virtual-environments/issues/4931
|
||||||
# by making Tcl/Tk paths the same on macOS 10.15 and macOS 11
|
# by making Tcl/Tk paths the same on macOS 10.15 and macOS 11
|
||||||
if is_BigSur; then
|
if is_BigSur; then
|
||||||
|
|||||||
@@ -422,6 +422,11 @@ function Get-AzureCLIVersion {
|
|||||||
return "Azure CLI $azureCLIVersion"
|
return "Azure CLI $azureCLIVersion"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function Get-AzureDevopsVersion {
|
||||||
|
$azdevopsVersion = (az version | ConvertFrom-Json).extensions.'azure-devops'
|
||||||
|
return "Azure CLI (azure-devops) $azdevopsVersion"
|
||||||
|
}
|
||||||
|
|
||||||
function Get-AWSCLIVersion {
|
function Get-AWSCLIVersion {
|
||||||
$awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1
|
$awsVersion = Run-Command "aws --version" | Take-Part -Part 0 | Take-Part -Delimiter "/" -Part 1
|
||||||
return "AWS CLI $awsVersion"
|
return "AWS CLI $awsVersion"
|
||||||
|
|||||||
@@ -155,6 +155,7 @@ $toolsList = @(
|
|||||||
(Get-CmakeVersion),
|
(Get-CmakeVersion),
|
||||||
(Get-AppCenterCLIVersion),
|
(Get-AppCenterCLIVersion),
|
||||||
(Get-AzureCLIVersion),
|
(Get-AzureCLIVersion),
|
||||||
|
(Get-AzureDevopsVersion),
|
||||||
(Get-AWSCLIVersion),
|
(Get-AWSCLIVersion),
|
||||||
(Get-AWSSAMCLIVersion),
|
(Get-AWSSAMCLIVersion),
|
||||||
(Get-AWSSessionManagerCLIVersion)
|
(Get-AWSSessionManagerCLIVersion)
|
||||||
|
|||||||
@@ -6,6 +6,12 @@ Describe "Azure CLI" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Azure DevOps CLI" {
|
||||||
|
It "az devops" {
|
||||||
|
"az devops -h" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "Carthage" {
|
Describe "Carthage" {
|
||||||
It "Carthage" {
|
It "Carthage" {
|
||||||
"carthage version" | Should -ReturnZeroExitCode
|
"carthage version" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
Reference in New Issue
Block a user