Skip to content

Commit

Permalink
Add coverage locations to test-and-publish workflow and set global co…
Browse files Browse the repository at this point in the history
…verage thresholds
  • Loading branch information
lposen committed Oct 16, 2024
1 parent 46993b3 commit 1e03b87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ jobs:
with:
coverageCommand: yarn test:coverage
debug: true
coverageLocations: |
${{github.workspace}}/coverage/*.lcov:lcov
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,15 @@
"src/**/*.{cjs,js,jsx,mjs,ts,tsx}",
"!src/**/*.test.{cjs,js,jsx,mjs,mdx,ts,tsx}",
"!src/(__tests__|__mocks__)/*"
]
],
"coverageThreshold": {
"global": {
"branches": 80,
"functions": 80,
"lines": 80,
"statements": 80
}
}
},
"commitlint": {
"extends": [
Expand Down

0 comments on commit 1e03b87

Please sign in to comment.