From a2b36f30cd2546a5769686a9e7ea02be18cee83d Mon Sep 17 00:00:00 2001 From: ivvist Date: Sun, 17 Nov 2024 18:59:29 +0100 Subject: [PATCH] fix short test --- dist/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index c7b6ccc..4c81fb4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -17344,7 +17344,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' @@ -17408,11 +17408,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') } @@ -17433,7 +17433,7 @@ 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) @@ -17441,7 +17441,7 @@ async function run() { 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)