diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04cbad8..2eedb6f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,4 +26,4 @@ jobs: run: npm ci - name: run tests - run: npm run ci-test + run: npm run test diff --git a/package.json b/package.json index 8c1d14f..d6f0775 100644 --- a/package.json +++ b/package.json @@ -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",