mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +00:00
Deprecate Java 7 (#2629)
This commit is contained in:
committed by
GitHub
parent
9480083149
commit
01cd7ca628
@@ -28,7 +28,7 @@ Describe "Java" {
|
||||
$result = Get-CommandResult "`"$javaPath`" -version"
|
||||
$result.ExitCode | Should -Be 0
|
||||
|
||||
if ($Version -eq 7 -or $Version -eq 8) {
|
||||
if ($Version -eq 8) {
|
||||
$Version = "1.${Version}"
|
||||
}
|
||||
$result.Output[0] | Should -Match ([regex]::Escape("openjdk version `"${Version}."))
|
||||
|
||||
Reference in New Issue
Block a user