Skip to content

Commit 06de583

Browse files
workflow fix
1 parent a60bbf8 commit 06de583

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

.github/workflows/coverage-check.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff 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()
@@ -36,6 +45,6 @@ jobs:
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

0 commit comments

Comments
 (0)