File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -64,13 +64,15 @@ jobs:
64
64
coverage-reports : reports/coverage/unit/lcov.info,reports/coverage/psql/lcov.info
65
65
- name : Format coverage report
66
66
uses : ArtiomTr/jest-coverage-report-action@v2
67
+ if : " !contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
67
68
id : coverage
68
69
with :
69
70
coverage-file : ./reports/coverage/coverage-final.json
70
71
base-coverage-file : ./reports/coverage/coverage-final.json
71
72
output : report-markdown
72
73
- name : Add coverage report comment
73
74
uses : marocchino/sticky-pull-request-comment@v2
75
+ if : " !contains(github.ref, 'refs/tags/') || github.ref != 'refs/heads/main'"
74
76
with :
75
77
header : pr-coverage
76
78
message : ${{ steps.coverage.outputs.report }}
Original file line number Diff line number Diff line change @@ -6,4 +6,9 @@ export default {
6
6
'^.+\\.tsx?$' : [ 'ts-jest' ] ,
7
7
} ,
8
8
setupFiles : [ '<rootDir>/test/environment/env-vars.mjs' ] ,
9
+ coverageThreshold : {
10
+ global : {
11
+ lines : 80 ,
12
+ } ,
13
+ } ,
9
14
} ;
You can’t perform that action at this time.
0 commit comments