1
0
Fork 0
mirror of https://code.forgejo.org/actions/go-versions synced 2025-06-08 11:38:22 +02:00

updated "version is correct" test

This commit is contained in:
Nikita Bykov 2020-08-24 16:42:58 +03:00
parent 484f52594b
commit 934ec78fc8

View file

@ -24,8 +24,7 @@ Describe "Go" {
}
It "version is correct" {
$(go version) -match "go(?<version>\d+\.\d+\.\d+)" | Out-Null
$versionOutput = $Matches.Version
$versionOutput = '$(go version) -match "go(?<version>\d+\.\d+\.\d+)" | Out-Null', ' Write-Host $Matches.Version' | Invoke-Expression
$versionOutput | Should -Match $Version
}