mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-02 23:37:18 +08:00
[mac OS] adding kotlin lang using brew (#3777)
This commit is contained in:
@@ -507,6 +507,11 @@ function Get-BicepVersion {
|
||||
return "Bicep CLI $bicepVersion"
|
||||
}
|
||||
|
||||
function Get-KotlinVersion {
|
||||
$kotlinVersion = Run-Command "kotlin -version" | Take-Part -Part 2
|
||||
return "kotlin $kotlinVersion"
|
||||
}
|
||||
|
||||
function Build-PackageManagementEnvironmentTable {
|
||||
return @(
|
||||
@{
|
||||
|
||||
@@ -43,7 +43,8 @@ $languageAndRuntimeList = @(
|
||||
(Get-DotnetVersionList),
|
||||
(Get-GoVersion),
|
||||
(Get-PHPVersion),
|
||||
(Get-JuliaVersion)
|
||||
(Get-JuliaVersion),
|
||||
(Get-KotlinVersion)
|
||||
)
|
||||
|
||||
if ( -not $os.IsHighSierra) {
|
||||
|
||||
@@ -166,4 +166,12 @@ Describe "Homebrew" {
|
||||
It "Homebrew" {
|
||||
"brew --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Kotlin" {
|
||||
$kotlinPackages = @("kapt", "kotlin", "kotlinc", "kotlinc-js", "kotlinc-jvm", "kotlin-dce-js")
|
||||
|
||||
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
|
||||
"$toolName -version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
@@ -244,6 +244,7 @@
|
||||
"gnu-tar",
|
||||
"go@1.15",
|
||||
"helm",
|
||||
"kotlin",
|
||||
"libpq",
|
||||
"llvm",
|
||||
"p7zip",
|
||||
|
||||
@@ -196,6 +196,7 @@
|
||||
"gnu-tar",
|
||||
"go@1.15",
|
||||
"helm",
|
||||
"kotlin",
|
||||
"libpq",
|
||||
"llvm",
|
||||
"p7zip",
|
||||
|
||||
@@ -143,6 +143,7 @@
|
||||
"gnu-tar",
|
||||
"go@1.15",
|
||||
"helm",
|
||||
"kotlin",
|
||||
"libpq",
|
||||
"llvm",
|
||||
"p7zip",
|
||||
|
||||
Reference in New Issue
Block a user