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

fixed Invoke-Expression

This commit is contained in:
Nikita Bykov 2020-08-24 16:50:14 +03:00
parent 934ec78fc8
commit 8daa2b0ac5

View file

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