Skip to content

Commit fbd2d45

Browse files
workflow fix 2
1 parent 06de583 commit fbd2d45

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

.github/workflows/coverage-check.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,13 @@ 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-
3021
- uses: ArtiomTr/jest-coverage-report-action@v2
3122
id: coverage
3223
with:
33-
coverage-file: reports/contentstack-delivery/coverage/coverage-summary.json
34-
base-coverage-file: reports/contentstack-delivery/coverage/coverage-summary.json
24+
test-script: npm test -- --coverage --testMatch="**/test/unit/**/*.spec.ts"
3525
threshold: 95
36-
skip-step: all
26+
output: report-markdown
27+
coverage-file: reports/contentstack-delivery/coverage/coverage-summary.json
3728

3829
- uses: marocchino/sticky-pull-request-comment@v2
3930
if: always()
@@ -45,6 +36,6 @@ jobs:
4536
if: success() || failure()
4637
with:
4738
name: Unit Tests
48-
path: /reports/contentstack-delivery/coverage/*.xml
39+
path: /reports/contentstack-delivery/coverage
4940
reporter: jest-unit
5041
fail-on-error: true

0 commit comments

Comments
 (0)