Update Go.Tests.ps1
This commit is contained in:
parent
638c3d6a70
commit
0b6a6fa38c
|
@ -51,7 +51,7 @@ Describe "Go" {
|
||||||
$useGoLogFile | Should -Exist
|
$useGoLogFile | Should -Exist
|
||||||
$useGoLogContent = Get-Content $useGoLogFile -Raw
|
$useGoLogContent = Get-Content $useGoLogFile -Raw
|
||||||
$useGoLogContent | Should -Match "Found in cache"
|
$useGoLogContent | Should -Match "Found in cache"
|
||||||
} else {
|
} elseif ($env:RUNNER_TYPE -eq "self-hosted"){
|
||||||
# Get the installed version of Go
|
# Get the installed version of Go
|
||||||
$goVersion = Invoke-Expression "go version"
|
$goVersion = Invoke-Expression "go version"
|
||||||
# Check if Go is installed
|
# Check if Go is installed
|
||||||
|
|
Loading…
Reference in New Issue