Skip to content

Commit

Permalink
feat: add git workflow for tests coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
syedsajjadkazmii committed May 22, 2024
1 parent 8c09cc6 commit e8dc6bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
- name: Lint
run: npm run lint
- name: Test
run: npm run test
run: npm run test -- --coverage
- name: Build
run: npm run build
- name: i18n_extract
run: npm run i18n_extract
- name: Coverage
uses: codecov/codecov-action@v3
uses: MishaKav/jest-coverage-comment@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
title: Coverage Report
summary-title: Coverage Summary
coverage-title: Coverage by files
coverage-path: ./coverage/coverage.txt
1 change: 1 addition & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ module.exports = createConfig('jest', {
'src/setupTest.js',
'src/i18n',
],
coverageReporters: [['text', { file: 'coverage.txt' }], 'json-summary', 'clover', 'lcov'],
});

0 comments on commit e8dc6bf

Please sign in to comment.