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) {
|
if ($Version -eq 8) {
|
||||||
$Version = "1.${Version}"
|
$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 {
|
It "Java Adopt Jdk <Version>" -TestCases $adoptJdkVersions {
|
||||||
$adoptPath = Join-Path (Get-ChildItem ${env:AGENT_TOOLSDIRECTORY}\Java_Adopt_jdk\${Version}*) "x64\bin\java"
|
$adoptPath = Join-Path (Get-ChildItem ${env:AGENT_TOOLSDIRECTORY}\Java_Adopt_jdk\${Version}*) "x64\bin\java"
|
||||||
|
|
||||||
$result = Get-CommandResult "`"$adoptPath`" -version"
|
$result = Get-CommandResult "`"$adoptPath`" -version"
|
||||||
$result.ExitCode | Should -Be 0
|
$result.ExitCode | Should -Be 0
|
||||||
|
|
||||||
if ($Version -eq 8) {
|
if ($Version -eq 8) {
|
||||||
$Version = "1.${Version}"
|
$Version = "1.${Version}"
|
||||||
}
|
}
|
||||||
$result.Output[0] | Should -Match ([regex]::Escape("openjdk version `"${Version}."))
|
$outputPattern = "openjdk version `"${Version}"
|
||||||
|
$result.Output[0] | Should -Match $outputPattern
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
"vendors": [
|
"vendors": [
|
||||||
{
|
{
|
||||||
"name": "Temurin-Hotspot",
|
"name": "Temurin-Hotspot",
|
||||||
"versions": [ "8", "11" ]
|
"versions": [ "8", "11", "17" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Adopt",
|
"name": "Adopt",
|
||||||
|
|||||||
@@ -146,7 +146,7 @@
|
|||||||
"vendors": [
|
"vendors": [
|
||||||
{
|
{
|
||||||
"name": "Temurin-Hotspot",
|
"name": "Temurin-Hotspot",
|
||||||
"versions": [ "8", "11" ]
|
"versions": [ "8", "11", "17" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Adopt",
|
"name": "Adopt",
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
"vendors": [
|
"vendors": [
|
||||||
{
|
{
|
||||||
"name": "Temurin-Hotspot",
|
"name": "Temurin-Hotspot",
|
||||||
"versions": [ "8", "11" ]
|
"versions": [ "8", "11", "17" ]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Adopt",
|
"name": "Adopt",
|
||||||
|
|||||||
Reference in New Issue
Block a user