1
0
Fork 0
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:
Nikita Bykov 2020-08-24 15:44:39 +03:00
parent 95934dc44f
commit 484f52594b

View file

@ -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" {