forked from anomalyco/opencode
-
Notifications
You must be signed in to change notification settings - Fork 0
ci: add codecov config and diff-cover enforcement (80% patch coverage gate) #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b672e8c
ci: add codecov config and diff-cover enforcement job
andreiships a549883
fix(ci): copy diff-cover-check action locally (personal account limit)
andreiships 2abed63
style: run prettier on new files
andreiships bb583c1
refactor(ci): reference diff-cover-check from shared-ai-standards
andreiships 908a83d
fix(ci): resolve diff-cover scope, threshold alignment, and branch fe…
andreiships 28984d0
fix(ci): fix lcov path mismatch and handle missing coverage artifact
andreiships 04c3b52
fix(ci): harden diff-cover enforcement and fix edge cases
andreiships f038099
style(ci): fix misleading comment about missing artifact behavior
andreiships 7787629
fix(ci): remove invalid --src-paths flag from diff-cover (not a valid…
andreiships File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,33 @@ | ||
| codecov: | ||
| require_ci_to_pass: yes | ||
|
|
||
| coverage: | ||
| precision: 2 | ||
| round: down | ||
| range: "70...100" | ||
| status: | ||
| project: | ||
| default: | ||
| target: auto | ||
| threshold: 1% | ||
| informational: true | ||
| threshold: 1% # Tolerance band: allows up to 1pp drop before blocking | ||
| patch: | ||
| default: | ||
|
andreiships marked this conversation as resolved.
andreiships marked this conversation as resolved.
|
||
| target: 70% | ||
| informational: true | ||
| target: 80% | ||
| informational: true # Enforcement via diff-cover job, not Codecov | ||
|
|
||
| ignore: | ||
| - "**/*.test.ts" | ||
| - "**/*.test.tsx" | ||
| - "**/*.spec.ts" | ||
| - "**/*.spec.tsx" | ||
| - "**/*.d.ts" | ||
| - "**/types/**" | ||
| - "**/dist/**" | ||
| - "**/build/**" | ||
| - "**/node_modules/**" | ||
|
|
||
| comment: | ||
| layout: "reach,diff,flags,files" | ||
| behavior: default | ||
| require_changes: false | ||
| require_base: false | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.