Skip to content

Commit

Permalink
added code coverage reports to coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
aubreyquinn committed Sep 27, 2024
1 parent e5eaf80 commit 5a27411
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/code-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ jobs:
- name: npm install, make test-coverage
run: |
npm install
make test-coverage
npm run test:coverage
- name: Coveralls
uses: coverallsapp/github-action@v2.3.0
- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./coverage/lcov.info
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
coverage
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"update:eslint-docs": "eslint-doc-generator",
"fix:md": "npm run lint:docs -- --fix",
"test:new": "jest",
"prepare": "husky"
"prepare": "husky",
"test:coverage": "jest --coverage"
},
"dependencies": {
"eslint-plugin-header": "^3.1.1",
Expand Down

0 comments on commit 5a27411

Please sign in to comment.