mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-19 08:21:44 +00:00
[Windows] Add Adoptium (Temurin-Hotspot) jdk 17 LTS (#4129)
This commit is contained in:
@@ -36,18 +36,20 @@ Describe "Java" {
|
||||
if ($Version -eq 8) {
|
||||
$Version = "1.${Version}"
|
||||
}
|
||||
$result.Output[0] | Should -Match ([regex]::Escape("openjdk version `"${Version}."))
|
||||
$outputPattern = "openjdk version `"${Version}"
|
||||
$result.Output[0] | Should -Match $outputPattern
|
||||
}
|
||||
|
||||
It "Java Adopt Jdk <Version>" -TestCases $adoptJdkVersions {
|
||||
$adoptPath = Join-Path (Get-ChildItem ${env:AGENT_TOOLSDIRECTORY}\Java_Adopt_jdk\${Version}*) "x64\bin\java"
|
||||
|
||||
|
||||
$result = Get-CommandResult "`"$adoptPath`" -version"
|
||||
$result.ExitCode | Should -Be 0
|
||||
|
||||
|
||||
if ($Version -eq 8) {
|
||||
$Version = "1.${Version}"
|
||||
}
|
||||
$result.Output[0] | Should -Match ([regex]::Escape("openjdk version `"${Version}."))
|
||||
$outputPattern = "openjdk version `"${Version}"
|
||||
$result.Output[0] | Should -Match $outputPattern
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user