Skip to content

Commit

Permalink
fix short test
Browse files Browse the repository at this point in the history
  • Loading branch information
ivvist committed Nov 17, 2024
1 parent 441c6be commit a27c38e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function run() {
const runModTidy = core.getInput('run-mod-tidy') === 'false'
const mainBranch = core.getInput('main-branch')
const ignoreCopyright = core.getInput('ignore-copyright') === 'true'
const ignoreRunBuild = core.getInput('ignore-build') === 'true'
const ignoreRunBuild = core.getInput('ignore-build')
const testfolder = core.getInput('test-folder')
const shorttest = core.getInput ('short-test') === 'true'

Expand Down Expand Up @@ -95,11 +95,11 @@ async function run() {
await execute('cd ' + testfolder)
}

if (!ignoreRunBuild) {
if (ignoreRunBuild !== "true") {
await execute('go build ./...')
}

if (runModTidy == "true") {
if (runModTidy === "true") {
await execute('go mod tidy')
}

Expand All @@ -120,15 +120,15 @@ async function run() {
else
tststr ='go test ./... -coverprofile=coverage.txt -covermode=atomic -coverpkg=./...'

if (shorttest == "true"){
if (shorttest === "true"){
tststr=tststr + ' -short'
}
await execute(tststr)
core.endGroup()
await execute(`bash -c "bash <(curl -Os https://uploader.codecov.io/latest/linux/codecov) -t ${codecovToken}"`)
} else {
let tststr='go test ./...'
if (shorttest == "true"){
if (shorttest === "true"){
tststr=tststr + ' -short'
}
await execute(tststr)
Expand Down

0 comments on commit a27c38e

Please sign in to comment.