Skip to content

Commit c8d99ca

Browse files
authored
Merge pull request #50 from PositiveSecurity/mjb881-codex/обновить-пороги-покрытия-кода-для-nyc
Add coverage thresholds
2 parents 499e1e1 + 446d5ca commit c8d99ca

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
node-version: '20'
1515
- run: npm install
1616
- run: npm run test -- --coverage --reporter=json-summary
17+
- name: Check coverage thresholds
18+
run: npx c8 check-coverage --lines 85 --branches 80 --functions 85
1719
- uses: actions/upload-artifact@v3
1820
with:
1921
name: coverage-baseline

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,5 +144,11 @@
144144
"pic/**/*",
145145
"README.md",
146146
"LICENSE"
147-
]
147+
],
148+
"nyc": {
149+
"check-coverage": true,
150+
"lines": 85,
151+
"branches": 80,
152+
"functions": 85
153+
}
148154
}

0 commit comments

Comments
 (0)