mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2026-04-25 21:18:51 +00:00
feat: add an option to verify with the JSONSchema (#1167)
This commit is contained in:
parent
32f961426b
commit
f7463c56f6
9 changed files with 69 additions and 24 deletions
6
dist/post_run/index.js
generated
vendored
6
dist/post_run/index.js
generated
vendored
|
|
@ -94123,6 +94123,12 @@ async function runLint(binPath, patchPath) {
|
|||
}
|
||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
||||
const cmdVerify = `${binPath} config verify`;
|
||||
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||
printOutput(res);
|
||||
}
|
||||
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
||||
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||
const startedAt = Date.now();
|
||||
|
|
|
|||
6
dist/run/index.js
generated
vendored
6
dist/run/index.js
generated
vendored
|
|
@ -94123,6 +94123,12 @@ async function runLint(binPath, patchPath) {
|
|||
}
|
||||
cmdArgs.cwd = path.resolve(workingDirectory);
|
||||
}
|
||||
if (core.getBooleanInput(`verify`, { required: true })) {
|
||||
const cmdVerify = `${binPath} config verify`;
|
||||
core.info(`Running [${cmdVerify}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||
const res = await execShellCommand(cmdVerify, cmdArgs);
|
||||
printOutput(res);
|
||||
}
|
||||
const cmd = `${binPath} run ${addedArgs.join(` `)} ${userArgs}`.trimEnd();
|
||||
core.info(`Running [${cmd}] in [${cmdArgs.cwd || process.cwd()}] ...`);
|
||||
const startedAt = Date.now();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue