Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ jobs:
- name: Run tests
run: npm test

- name: Upload to coveralls
run: |
npm install coveralls
npm run coveralls
- name: Generate coverage report
run: npm run coverage

- name: Upload to coveralls
uses: coverallsapp/github-action@v2
with:
file: ./coverage.lcov
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/node_modules/
/coverage/
/.nyc_output/
/coverage.lcov
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"scripts": {
"test": "nyc mocha tests/node-test.js",
"report": "nyc --reporter=html --reporter=text mocha tests/node-test.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
"coverage": "nyc report --reporter=text-lcov > coverage.lcov",
"build": "uglifyjs src/sha256.js -c -m eval --comments -o build/sha256.min.js"
},
"repository": {
Expand Down