standardize workflow test pattern

This commit is contained in:
eric sciple 2020-02-11 18:17:37 -05:00
parent f63b906f27
commit 60cf21b5e7
3 changed files with 84 additions and 32 deletions

11
__tests__/verify-java.ps1 Normal file
View file

@ -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"
}