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:
parent
934ec78fc8
commit
8daa2b0ac5
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue