Merge pull request #7 from nikita-bykov/migrate-go-versions

updated
This commit is contained in:
Nikita Bykov 2020-08-25 15:51:14 +03:00 committed by GitHub
commit 0978db0999
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

2
.gitmodules vendored
View file

@ -1,4 +1,4 @@
[submodule "helpers"]
path = helpers
url = https://github.com/actions/versions-package-tools
branch = v-mazhuk/test-branch
branch = main

View file

@ -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.

@ -1 +1 @@
Subproject commit 68072bedefb41436c6b70ddfa9adb8e631a3b6cf
Subproject commit 3b38e3de4c5e4bc75f5dee12b5bb8dbffe35c562

View file

@ -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
}