Skip to content

Commit b97f989

Browse files
Enhance coverage-check workflow by adding Node.js setup, caching, and generating coverage report with specified files
1 parent c5a2e17 commit b97f989

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/coverage-check.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,20 @@ 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+
2128
- name: Run unit tests with coverage
29+
run: npm run test:unit
30+
31+
- name: Generate coverage report
2232
uses: ArtiomTr/jest-coverage-report-action@v2
2333
id: coverage
2434
with:
25-
test-script: npm run test:unit
2635
threshold: 95
2736

2837
- name: Test Report

0 commit comments

Comments
 (0)