mirror of
https://github.com/actions/go-versions.git
synced 2025-07-18 13:18:24 +02:00
Update Go.Tests.ps1
This commit is contained in:
parent
5fadb88d54
commit
0f6d2a4392
1 changed files with 7 additions and 7 deletions
|
@ -25,7 +25,7 @@ Describe "Go" {
|
||||||
|
|
||||||
It "version is correct" {
|
It "version is correct" {
|
||||||
[version]$Version = $env:VERSION
|
[version]$Version = $env:VERSION
|
||||||
$versionOutput = Invoke-Expression -Command "go version"
|
$versionOutput = (Invoke-Expression -Command "go version") -replace "v", "" # remove "v" prefix
|
||||||
$finalVersion = $Version.ToString(3)
|
$finalVersion = $Version.ToString(3)
|
||||||
If ($Version.Build -eq "0") {
|
If ($Version.Build -eq "0") {
|
||||||
$finalVersion = $Version.ToString(2)
|
$finalVersion = $Version.ToString(2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue