diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7850913c..eb985381 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \ No newline at end of file + 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 \ No newline at end of file diff --git a/jest.config.js b/jest.config.js index 1df99c3d..6f0f1bf7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -10,4 +10,5 @@ module.exports = createConfig('jest', { 'src/setupTest.js', 'src/i18n', ], + coverageReporters: [['text', { file: 'coverage.txt' }], 'json-summary', 'clover', 'lcov'], });