Remove Setup-Go (#403)
* Remove Setup-Go Signed-off-by: Steve Coffman <steve@khanacademy.org> * Add setup-go to test github actions Signed-off-by: Steve Coffman <steve@khanacademy.org> * Modify README and action.yml per review Signed-off-by: Steve Coffman <steve@khanacademy.org> * build dist Co-authored-by: Sergey Vilgelm <sergey@vilgelm.com>
This commit is contained in:
@ -2,7 +2,6 @@ import * as core from "@actions/core"
|
||||
import * as tc from "@actions/tool-cache"
|
||||
import os from "os"
|
||||
import path from "path"
|
||||
import { run as setupGo } from "setup-go/lib/main"
|
||||
|
||||
import { VersionConfig } from "./version"
|
||||
|
||||
@ -59,16 +58,3 @@ export async function installLint(versionConfig: VersionConfig): Promise<string>
|
||||
core.info(`Installed golangci-lint into ${lintPath} in ${Date.now() - startedAt}ms`)
|
||||
return lintPath
|
||||
}
|
||||
|
||||
export async function installGo(): Promise<void> {
|
||||
const skipGoInstallation = core.getInput(`skip-go-installation`, { required: true }).trim()
|
||||
if (skipGoInstallation.toLowerCase() == "true") {
|
||||
core.info(`Skipping the installation of Go`)
|
||||
return
|
||||
}
|
||||
|
||||
const startedAt = Date.now()
|
||||
process.env[`INPUT_GO-VERSION`] = `1`
|
||||
await setupGo()
|
||||
core.info(`Installed Go in ${Date.now() - startedAt}ms`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user