Skip to content

Commit 7e7e17f

Browse files
refactor GitHub Actions workflow for coverage checks and test reporting
1 parent 6c0b2bc commit 7e7e17f

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/coverage-check.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,23 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
20+
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 run test:unit
25-
threshold: 95
2633
coverage-file: reports/contentstack-delivery/coverage/coverage-final.json
2734
base-coverage-file: reports/contentstack-delivery/coverage/coverage-final.json
35+
threshold: 95
36+
skip-step: all
2837

2938
- name: Test Report
3039
uses: dorny/test-reporter@v1

0 commit comments

Comments
 (0)