File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,13 +18,22 @@ jobs:
1818 steps :
1919 - uses : actions/checkout@v4
2020
21+ - uses : actions/setup-node@v4
22+ with :
23+ node-version : ' 18'
24+ cache : ' npm'
25+
26+ - run : npm ci
27+
28+ - run : npm test -- --coverage --testMatch="**/test/unit/**/*.spec.ts"
29+
2130 - uses : ArtiomTr/jest-coverage-report-action@v2
2231 id : coverage
2332 with :
24- test-script : npm test -- --coverage --testMatch="**/test/unit/**/*.spec.ts"
25- threshold : 95
26- output : report-markdown
2733 coverage-file : reports/contentstack-delivery/coverage/coverage-summary.json
34+ base-coverage-file : reports/contentstack-delivery/coverage/coverage-summary.json
35+ threshold : 95
36+ skip-step : all
2837
2938 - uses : marocchino/sticky-pull-request-comment@v2
3039 if : always()
3645 if : success() || failure()
3746 with :
3847 name : Unit Tests
39- path : /reports/contentstack-delivery/html
40- reporter : jest-html-reporters
48+ path : /reports/contentstack-delivery/coverage/*.xml
49+ reporter : jest-unit
4150 fail-on-error : true
You can’t perform that action at this time.
0 commit comments