Skip to content

Commit

Permalink
codecov integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tashfiqul-islam committed Jan 3, 2024
1 parent b9c8757 commit 2c0b769
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ jobs:
run: npm test
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
PORT: ${{ secrets.PORT }}
PORT: ${{ secrets.PORT }}

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"start": "node api/view-counter.js",
"dev": "nodemon api/view-counter.js",
"format": "prettier --write .",
"test": "jest"
},
"test": "jest --coverage"
},
"devDependencies": {
"jest": "^29.7.0",
"mongodb-memory-server": "^9.1.3",
Expand Down

0 comments on commit 2c0b769

Please sign in to comment.