mirror of
https://code.forgejo.org/actions/go-versions
synced 2025-06-10 04:22:23 +02:00
fixed "version is correct" test
This commit is contained in:
parent
95934dc44f
commit
484f52594b
1 changed files with 3 additions and 2 deletions
|
@ -24,8 +24,9 @@ Describe "Go" {
|
||||||
}
|
}
|
||||||
|
|
||||||
It "version is correct" {
|
It "version is correct" {
|
||||||
$versionOutput = Invoke-Expression "go version"
|
$(go version) -match "go(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||||
$versionOutput | Should -Match "go version go$Version linux/amd64"
|
$versionOutput = $Matches.Version
|
||||||
|
$versionOutput | Should -Match $Version
|
||||||
}
|
}
|
||||||
|
|
||||||
It "is used from tool-cache" {
|
It "is used from tool-cache" {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue