mirror of
https://github.com/actions/go-versions.git
synced 2024-06-09 09:22:29 +02:00
fixed tests
This commit is contained in:
parent
84bf6fea5a
commit
d2545be179
|
@ -49,10 +49,10 @@ Describe "Go" {
|
|||
$useGoLogContent | Should -Match "Found in cache"
|
||||
}
|
||||
|
||||
Set-Location -Path "source"
|
||||
$sourceLocation = Get-Location
|
||||
|
||||
It "Run simple code" {
|
||||
Set-Location -Path "source"
|
||||
$sourceLocation = Get-Location
|
||||
$simpleLocation = Join-Path -Path $sourceLocation -ChildPath "simple"
|
||||
Set-Location -Path $simpleLocation
|
||||
"go run simple.go" | Should -ReturnZeroExitCode
|
||||
|
@ -61,6 +61,8 @@ Describe "Go" {
|
|||
}
|
||||
|
||||
It "Run maps code" {
|
||||
Set-Location -Path "source"
|
||||
$sourceLocation = Get-Location
|
||||
$mapsLocation = Join-Path -Path $sourceLocation -ChildPath "maps"
|
||||
Set-Location -Path $mapsLocation
|
||||
"go run maps.go" | Should -ReturnZeroExitCode
|
||||
|
@ -69,6 +71,8 @@ Describe "Go" {
|
|||
}
|
||||
|
||||
It "Run methods code" {
|
||||
Set-Location -Path "source"
|
||||
$sourceLocation = Get-Location
|
||||
$methodsLocation = Join-Path -Path $sourceLocation -ChildPath "methods"
|
||||
Set-Location -Path $methodsLocation
|
||||
"go run methods.go" | Should -ReturnZeroExitCode
|
||||
|
|
Loading…
Reference in a new issue