Skip to content

Commit

Permalink
feat: added badges for the coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSuero committed May 7, 2024
1 parent 526130e commit 7f48170
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div align="center">
<h1>GitHub Action for Selene</h1>

<a href="https://github.com/AlejandroSuero/selene-linter-action/actions">
<img alt="selene-linter-action status" src="https://github.com/AlejandroSuero/selene-linter-action/workflows/build-test/badge.svg">
</a>
![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)
[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)
![Test build](https://github.com/actions/typescript-action/actions/workflows/build-test/badge.svg)

</div>

Expand Down
1 change: 1 addition & 0 deletions badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@
"build": "tsc",
"ci-test": "npx jest",
"test": "npx jest",
"coverage": "npx make-coverage-badge --output-path ./badges/coverage.svg",
"bundle": "npm run format:write && npm run package",
"format:write": "npx prettier --write **/*.{ts,js}",
"format:check": "npx prettier --check **/*.{ts,js}",
"lint": "npx eslint --ext .ts,.js . -c ./.eslintrc.json",
"lint:fix": "npx eslint --ext .ts,.js . -c ./.eslintrc.json --fix",
"package": "npx ncc build src/index.ts -o dist --source-map --license licenses.txt",
"all": "npm run test && npm run build && npm run format:check && npm run lint && npm run package"
"all": "npm run test && npm run coverage && npm run build && npm run format:check && npm run lint && npm run package"
},
"license": "MIT",
"jest": {
Expand Down

0 comments on commit 7f48170

Please sign in to comment.