Skip to content

Commit

Permalink
fix ci testing
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Sep 7, 2023
1 parent 587d7db commit 2fee953
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": "(BRANCH_DEPLOY_JEST_TEST=true jest && make-coverage-badge --output-path ./badges/coverage.svg) || make-coverage-badge --output-path ./badges/coverage.svg",
"ci-test": "BRANCH_DEPLOY_JEST_TEST=true jest",
"all": "npm run format && npm run lint && npm run package",
"bundle": "npm run format && npm run package",
"act": "npm run format && npm run package && act issue_comment -e events/issue_comment_deploy.json -s GITHUB_TOKEN=faketoken -j test"
Expand Down
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,10 @@ export async function run() {
if (core.getState('isPost') === 'true') {
post()
} else {
if (process.env.CI === 'true') {
if (
process.env.CI === 'true' &&
process.env.BRANCH_DEPLOY_JEST_TEST !== 'true'
) {
run()
}
}

0 comments on commit 2fee953

Please sign in to comment.