Skip to content

Commit 73374a4

Browse files
committed
testing safe guards
1 parent 73711f0 commit 73374a4

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

dist/index.js

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"format-check": "prettier --check '**/*.js'",
1010
"lint": "eslint src/**/*.js",
1111
"package": "ncc build src/main.js -o dist --source-map --license licenses.txt",
12-
"test": "(jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
13-
"ci-test": "jest",
12+
"test": "(COMMAND_ACTION_JEST_TEST=true jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
13+
"ci-test": "COMMAND_ACTION_JEST_TEST=true jest",
1414
"all": "npm run format && npm run lint && npm run package",
1515
"bundle": "npm run format && npm run package"
1616
},

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ export async function run() {
120120
if (core.getState('isPost') === 'true') {
121121
post()
122122
} else {
123-
if (process.env.CI === 'true') {
123+
if (
124+
process.env.CI === 'true' &&
125+
process.env.COMMAND_ACTION_JEST_TEST !== 'true'
126+
) {
124127
run()
125128
}
126129
}

0 commit comments

Comments
 (0)