Fix uploading coverage to coveralls (#52)

Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
This commit is contained in:
Matthew Peveler
2026-07-18 17:40:42 +08:00
committed by GitHub
parent bacba8e8c6
commit da84f28777
3 changed files with 8 additions and 5 deletions
+6 -4
View File
@@ -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
View File
@@ -1,3 +1,4 @@
/node_modules/
/coverage/
/.nyc_output/
/coverage.lcov
+1 -1
View File
@@ -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": {