Skip to content

Commit 5eeb5fd

Browse files
Refactor coverage-check workflow to streamline steps and utilize npm run test:unit for coverage reporting
1 parent c3630c0 commit 5eeb5fd

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/coverage-check.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,9 @@ 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-
2821
- name: Run unit tests with coverage
29-
run: npm run test:unit
30-
31-
- name: Generate coverage report
3222
uses: ArtiomTr/jest-coverage-report-action@v2
3323
id: coverage
3424
with:
35-
coverage-file: reports/contentstack-delivery/coverage/coverage-final.json
25+
test-script: npm run test:unit
3626
threshold: 95
37-
skip-step: all
38-
39-
- name: Test Report
40-
uses: dorny/test-reporter@v1
41-
if: success() || failure()
42-
with:
43-
name: Unit Tests
44-
path: reports/contentstack-delivery/junit/*.xml
45-
reporter: java-junit
46-
fail-on-error: false

0 commit comments

Comments
 (0)