Hey @tom - thanks for getting back. Maybe you have a better solution to what I am struggling with here.
We have a monorepo at work that has a total of ~70 projects. Currently, our coverage ratio is for the entire repo which barely changes on individual PRs given the size of it. We would like to be more granular by encapsulating the coverage reports for each project.
We thought about flagging each of our project but soon realized that it would mean our PR builds would be 70+ lines (each project having its own coverage check). Ideally we would like to see coverage checks only for the projects that the PR is concerned with.
Flags seem to work well with monorepos with a few projects, but for us it introduces too much noise into every PR given that we need 70+ flags.
Ideally we need a way to dynamically change the projects that would show up on coverage checks. The solution I came up with is to create a yaml file for each project and dynamically tell Codecov which yaml file to use at build time using the
-y flag in the bash script.
For example, if I worked on a PR for
project A, I would tell Codecov to use the yaml file in
project A which allows me to get only the relevant coverage report.
bash <(curl -s https://codecov.io/bash) -y /projectA/codecov.yml
But given that the feature is now deprecated, I’m wondering what the best alternative solution would be. Our company’s been struggling to get this right for quite a bit now. Any help or insight would be appreciated!