-
Notifications
You must be signed in to change notification settings - Fork 67
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
Coverage only runs runs when meaningful files are changed #468
Conversation
can be reviewed and merged by @henryleberre |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #468 +/- ##
=======================================
Coverage 57.91% 57.91%
=======================================
Files 55 55
Lines 14230 14230
Branches 1854 1854
=======================================
Hits 8242 8242
Misses 5452 5452
Partials 536 536 ☔ View full report in Codecov by Sentry. |
Is there a reason you can't use the |
The main reason I suggested using https://github.com/dorny/paths-filter was because the path applied to pull request, push, and workflow_dispatch.
If we can't do something similar to above we are repeating a lot of code, which is something Spencer was trying to change in his pr I think. |
indeed the above syntax doesn't work, though I do notice that you have to repeat your filtering statement in all of the workflows in |
This is true, but in the future if we have different jobs in the same files that want to check different files we can specify that it in the conditional like in this example: https://github.com/GoogleChrome/web.dev/blob/3a57b721e7df6fc52172f676ca68d16153bda6a3/.github/workflows/lint-workflow.yml#L26 . This feature might be useful if we add more complex tests. |
I was assuming that Github supported YAML anchors.. but they don't. actions/runner#1182 has been open since 2021 and has 1k upvotes. The last comment in that thread gives an example of how I was imagining using it. |
Description
Added https://github.com/dorny/paths-filter to CI based on @sbryngelson Pull Request #461
The Filter is modulated on purpose for future use as you can specify which grouping you want as seen in test.yml & coverage.yml
Type of change
Scope
If you cannot check the above box, please split your PR into multiple PRs that each have a common goal.
How Has This Been Tested?
Test Configuration:
Github Actions on my fork
Checklist
./mfc.sh format
before committing my code