-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
add a check to make sure unit tests are considered when changing code #10337
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should refactor https://github.com/dbt-labs/actions/blob/main/.github/workflows/changelog-existence.yml#L2 a bit to make it more generalized and use it here.
@emmyoop WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10337 +/- ##
==========================================
+ Coverage 88.78% 88.81% +0.02%
==========================================
Files 180 180
Lines 22490 22486 -4
==========================================
+ Hits 19967 19970 +3
+ Misses 2523 2516 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
uses: actions/github-script@v7 | ||
with: | ||
script: core.setFailed('Unit Test required to merge.') | ||
uses: dbt-labs/actions/.github/workflows/check-change-and-comment.yml@main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the new action things should look much easier.
@emmyoop thoughts on this refactor and how to best test it?
resolves #10329
For new code checked in, we require 75% unittest coverage. We can always adjust if it becomes too noisy.
Docs about component https://about.codecov.io/blog/codecov-components-breaking-down-coverage-by-filters/