Skip to content

Commit 08fb506

Browse files
committed
refactor: added coverall in workflow
1 parent 6e07036 commit 08fb506

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/main.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ jobs:
1616
node-version: '18.x'
1717
registry-url: 'https://registry.npmjs.org'
1818
- run: npm install
19+
20+
# Run tests with coverage
21+
- run: npm test -- --coverage
22+
continue-on-error: false
23+
24+
# Send coverage report to Coveralls
25+
- run: npm install coveralls --save-dev
26+
- run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
27+
env:
28+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_POSTGRES_TOKEN }}
29+
1930
- run: npm publish
2031
env:
2132
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)