Skip to content

Commit

Permalink
test: coverage and test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
SaiKumar2121 committed Jan 17, 2025
1 parent 1cea0dc commit c9db2d2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish the Errsole MongoDB package to npm
on:
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
# Run tests and generate coverage report
- run: npm test -- --coverage
continue-on-error: false
# Send the coverage report to Coveralls
- run: npm install coveralls --save-dev
- run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_MONGODB_TOKEN }}

0 comments on commit c9db2d2

Please sign in to comment.