Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Besson committed Dec 14, 2022
1 parent fe721a4 commit 63d19eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ jobs:
coverage-reports: reports/coverage/unit/lcov.info,reports/coverage/psql/lcov.info
- name: Format coverage report
uses: ArtiomTr/jest-coverage-report-action@v2
if: "!contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
id: coverage
with:
coverage-file: ./reports/coverage/coverage-final.json
base-coverage-file: ./reports/coverage/coverage-final.json
output: report-markdown
- name: Add coverage report comment
uses: marocchino/sticky-pull-request-comment@v2
if: "!contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
with:
header: pr-coverage
message: ${{ steps.coverage.outputs.report }}
Expand Down
5 changes: 5 additions & 0 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ export default {
'^.+\\.tsx?$': ['ts-jest'],
},
setupFiles: ['<rootDir>/test/environment/env-vars.mjs'],
coverageThreshold: {
global: {
lines: 80,
},
},
};

0 comments on commit 63d19eb

Please sign in to comment.