mirror of
https://github.com/actions/go-versions.git
synced 2024-06-01 21:42:26 +02:00
commit
0978db0999
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,4 +1,4 @@
|
|||
[submodule "helpers"]
|
||||
path = helpers
|
||||
url = https://github.com/actions/versions-package-tools
|
||||
branch = v-mazhuk/test-branch
|
||||
branch = main
|
||||
|
|
|
@ -1,28 +1,28 @@
|
|||
class GoBuilder {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Base Node.js builder class.
|
||||
Base Go builder class.
|
||||
|
||||
.DESCRIPTION
|
||||
Base Node.js builder class that contains general builder methods.
|
||||
Base Go builder class that contains general builder methods.
|
||||
|
||||
.PARAMETER Version
|
||||
The version of Node.js that should be built.
|
||||
The version of Go that should be built.
|
||||
|
||||
.PARAMETER Platform
|
||||
The platform of Node.js that should be built.
|
||||
The platform of Go that should be built.
|
||||
|
||||
.PARAMETER Architecture
|
||||
The architecture with which Node.js should be built.
|
||||
The architecture with which Go should be built.
|
||||
|
||||
.PARAMETER TempFolderLocation
|
||||
The location of temporary files that will be used during Node.js package generation.
|
||||
The location of temporary files that will be used during Go package generation.
|
||||
|
||||
.PARAMETER WorkFolderLocation
|
||||
The location of installation files.
|
||||
|
||||
.PARAMETER ArtifactFolderLocation
|
||||
The location of generated Node.js artifact.
|
||||
The location of generated Go artifact.
|
||||
|
||||
.PARAMETER InstallationTemplatesLocation
|
||||
The location of installation script template. Using "installers" folder from current repository.
|
||||
|
|
2
helpers
2
helpers
|
@ -1 +1 @@
|
|||
Subproject commit 68072bedefb41436c6b70ddfa9adb8e631a3b6cf
|
||||
Subproject commit 3b38e3de4c5e4bc75f5dee12b5bb8dbffe35c562
|
|
@ -22,9 +22,9 @@ Describe "Go" {
|
|||
|
||||
It "version is correct" {
|
||||
$versionOutput = Invoke-Expression -Command "go version"
|
||||
$finalVersion = $env:VERSION.ToString(3)
|
||||
$finalVersion = ($env:VERSION).ToString(3)
|
||||
If ($Version.Build -eq "0"){
|
||||
$finalVersion = $env:VERSION.ToString(2)
|
||||
$finalVersion = ($env:VERSION).ToString(2)
|
||||
}
|
||||
$versionOutput | Should -Match $finalVersion
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue