Remove 'ci-test' script in favor of generating coverage badges as part of the 'all' script

This commit is contained in:
James M. Greene
2023-04-17 23:18:55 -05:00
parent f7c37e718b
commit 20bd69d98b
2 changed files with 4 additions and 4 deletions

View File

@@ -26,4 +26,4 @@ jobs:
run: npm ci
- name: run tests
run: npm run ci-test
run: npm run test

View File

@@ -21,14 +21,14 @@
"make-coverage-badge": "^1.2.0"
},
"scripts": {
"all": "npm run format && npm run lint && npm run prepare && npm run test",
"all": "npm run format && npm run lint && npm run prepare && npm run test && npm run coverage-badge",
"format": "prettier --write .",
"format:check": "prettier --check .",
"lint": "DEBUG=eslint:cli-engine eslint --fix .",
"lint:check": "DEBUG=eslint:cli-engine eslint .",
"prepare": "ncc build src/index.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": "jest",
"coverage-badge": "make-coverage-badge --output-path ./badges/coverage.svg"
},
"repository": {
"type": "git",