mirror of
https://code.forgejo.org/actions/go-versions
synced 2025-06-08 11:38:22 +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" {
|
||||
$versionOutput = Invoke-Expression "go version"
|
||||
$versionOutput | Should -Match "go version go$Version linux/amd64"
|
||||
$(go version) -match "go(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$versionOutput = $Matches.Version
|
||||
$versionOutput | Should -Match $Version
|
||||
}
|
||||
|
||||
It "is used from tool-cache" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue