Skip to content

Commit

Permalink
Merge pull request #260 from farhan7reza7/codecover
Browse files Browse the repository at this point in the history
Codecover: updated codes to integrate codecov correctly
  • Loading branch information
farhan7reza7 authored Mar 1, 2024
2 parents 56732be + 3af9c01 commit bedb996
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Workflow for Codecov example-javascript
on: [workflow_dispatch]
on: [push, pull_request, workflow_dispatch]
jobs:
run:
runs-on: ubuntu-latest
Expand All @@ -14,6 +14,9 @@ jobs:
run: npm install
- name: Run tests and collect coverage
run: npm run test
env:
TOKEN: ${{ secrets.TOKEN }}
USER: ${{ secrets.USER }}
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4.0.1
with:
Expand Down
4 changes: 4 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,9 @@ module.exports = {
transform: {
'^.+\\.js$': 'babel-jest',
},

collectCoverage: true,
coverageReporters: ['text', 'cobertura'],

testEnvironment: 'node',
};

0 comments on commit bedb996

Please sign in to comment.