mirror of
https://github.com/actions/setup-java.git
synced 2026-11-16 01:54:59 +00:00
standardize workflow test pattern
This commit is contained in:
1 parent
f63b906f27
commit
60cf21b5e7
3 files changed
+84
-32
No files matched your search
@@ -0,0 +1,11 @@
|
||||
if (!$args.Count -or !$args[0])
|
||||
{
|
||||
throw "Must supply java version argument"
|
||||
}
|
||||
|
||||
$java_version = & cmd.exe /c "java -version 2>&1" | Out-String
|
||||
Write-Host "Found java version: $java_version"
|
||||
if (!$java_version.Contains($args[0]))
|
||||
{
|
||||
throw "Unexpected version"
|
||||
}
|
||||
Reference in new issue
Block a user