mirror of
https://codeberg.org/actions/go-versions.git
synced 2024-01-07 17:16:09 +00:00
Update helpers and fix tests
This commit is contained in:
parent
7cea0f8549
commit
333033608c
2
helpers
2
helpers
|
@ -1 +1 @@
|
||||||
Subproject commit 3b38e3de4c5e4bc75f5dee12b5bb8dbffe35c562
|
Subproject commit 4b0fa42d9972d1f51dd26ca96e03987d374a1d7a
|
|
@ -57,7 +57,9 @@ Describe "Go" {
|
||||||
Set-Location -Path $simpleLocation
|
Set-Location -Path $simpleLocation
|
||||||
"go run simple.go" | Should -ReturnZeroExitCode
|
"go run simple.go" | Should -ReturnZeroExitCode
|
||||||
"go build simple.go" | Should -ReturnZeroExitCode
|
"go build simple.go" | Should -ReturnZeroExitCode
|
||||||
"./simple" | Should -ReturnZeroExitCode
|
$compiledPackageName = "simple"
|
||||||
|
if ($IsWindows) { $compiledPackageName = "simple.exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Run maps code" {
|
It "Run maps code" {
|
||||||
|
@ -65,7 +67,9 @@ Describe "Go" {
|
||||||
Set-Location -Path $mapsLocation
|
Set-Location -Path $mapsLocation
|
||||||
"go run maps.go" | Should -ReturnZeroExitCode
|
"go run maps.go" | Should -ReturnZeroExitCode
|
||||||
"go build maps.go" | Should -ReturnZeroExitCode
|
"go build maps.go" | Should -ReturnZeroExitCode
|
||||||
"./maps" | Should -ReturnZeroExitCode
|
$compiledPackageName = "maps"
|
||||||
|
if ($IsWindows) { $compiledPackageName = "maps.exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Run methods code" {
|
It "Run methods code" {
|
||||||
|
@ -73,6 +77,8 @@ Describe "Go" {
|
||||||
Set-Location -Path $methodsLocation
|
Set-Location -Path $methodsLocation
|
||||||
"go run methods.go" | Should -ReturnZeroExitCode
|
"go run methods.go" | Should -ReturnZeroExitCode
|
||||||
"go build methods.go" | Should -ReturnZeroExitCode
|
"go build methods.go" | Should -ReturnZeroExitCode
|
||||||
"./methods" | Should -ReturnZeroExitCode
|
$compiledPackageName = "methods"
|
||||||
|
if ($IsWindows) { $compiledPackageName = "methods.exe" }
|
||||||
|
(Resolve-Path "./$compiledPackageName").Path | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue