Skip to content

Commit 63d19eb

Browse files
author
Bruno Besson
committed
WIP
1 parent fe721a4 commit 63d19eb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,15 @@ jobs:
6464
coverage-reports: reports/coverage/unit/lcov.info,reports/coverage/psql/lcov.info
6565
- name: Format coverage report
6666
uses: ArtiomTr/jest-coverage-report-action@v2
67+
if: "!contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
6768
id: coverage
6869
with:
6970
coverage-file: ./reports/coverage/coverage-final.json
7071
base-coverage-file: ./reports/coverage/coverage-final.json
7172
output: report-markdown
7273
- name: Add coverage report comment
7374
uses: marocchino/sticky-pull-request-comment@v2
75+
if: "!contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
7476
with:
7577
header: pr-coverage
7678
message: ${{ steps.coverage.outputs.report }}

jest.config.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,9 @@ export default {
66
'^.+\\.tsx?$': ['ts-jest'],
77
},
88
setupFiles: ['<rootDir>/test/environment/env-vars.mjs'],
9+
coverageThreshold: {
10+
global: {
11+
lines: 80,
12+
},
13+
},
914
};

0 commit comments

Comments
 (0)