Add a skip-go-installation to use pre-installed Go (#144)
* update package-lock.json * Add skip-go-installation to use pre-installed Go Add the golangci-lint to PATH
This commit is contained in:
@ -187,6 +187,7 @@ async function runLint(lintPath: string, patchPath: string): Promise<void> {
|
||||
export async function run(): Promise<void> {
|
||||
try {
|
||||
const { lintPath, patchPath } = await core.group(`prepare environment`, prepareEnv)
|
||||
core.addPath(path.dirname(lintPath))
|
||||
await core.group(`run golangci-lint`, () => runLint(lintPath, patchPath))
|
||||
} catch (error) {
|
||||
core.error(`Failed to run: ${error}, ${error.stack}`)
|
||||
|
Reference in New Issue
Block a user