Skip to content

Commit

Permalink
testing safe guards
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Sep 13, 2023
1 parent 73711f0 commit 73374a4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
5 changes: 4 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"format-check": "prettier --check '**/*.js'",
"lint": "eslint src/**/*.js",
"package": "ncc build src/main.js -o dist --source-map --license licenses.txt",
"test": "(jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
"ci-test": "jest",
"test": "(COMMAND_ACTION_JEST_TEST=true jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
"ci-test": "COMMAND_ACTION_JEST_TEST=true jest",
"all": "npm run format && npm run lint && npm run package",
"bundle": "npm run format && npm run package"
},
Expand Down
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ export async function run() {
if (core.getState('isPost') === 'true') {
post()
} else {
if (process.env.CI === 'true') {
if (
process.env.CI === 'true' &&
process.env.COMMAND_ACTION_JEST_TEST !== 'true'
) {
run()
}
}

0 comments on commit 73374a4

Please sign in to comment.