Skip to content

Commit

Permalink
add ignore-build
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvist committed Mar 12, 2024
1 parent 9eec720 commit c6b268d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17344,6 +17344,7 @@ async function run() {
const runModTidy = core.getInput('run-mod-tidy') === 'true'
const mainBranch = core.getInput('main-branch')
const ignoreCopyright = core.getInput('ignore-copyright') === 'true'
const ignoreRunBuild = core.getInput('ignore-build') === 'true'
const testfolder = core.getInput('test-folder')
const shorttest = core.getInput ('short-test') === 'true'

Expand Down Expand Up @@ -17403,7 +17404,9 @@ async function run() {
}
}

await execute('go build ./' + testfolder + '...')
if (!ignoreRunBuild) {
await execute('go build ./' + testfolder + '...')
}

if (runModTidy) {
await execute('go mod tidy')
Expand Down
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ async function run() {
const runModTidy = core.getInput('run-mod-tidy') === 'true'
const mainBranch = core.getInput('main-branch')
const ignoreCopyright = core.getInput('ignore-copyright') === 'true'
const ignoreRunBuild = core.getInput('ignore-build') === 'true'
const testfolder = core.getInput('test-folder')
const shorttest = core.getInput ('short-test') === 'true'

Expand Down Expand Up @@ -90,7 +91,9 @@ async function run() {
}
}

await execute('go build ./' + testfolder + '...')
if (!ignoreRunBuild) {
await execute('go build ./' + testfolder + '...')
}

if (runModTidy) {
await execute('go mod tidy')
Expand Down

0 comments on commit c6b268d

Please sign in to comment.