Upload multiple reports with different flags using single config #168
Replies: 7 comments 2 replies
-
Also, for some context: we currently have 11 reports, because of the test matrix and splitting unit and integration tests, and I think it’s quite likely to grow. Having the ability to take all in the |
Beta Was this translation helpful? Give feedback.
-
@Ekleog-NEAR, no this is not possible as specified. You can instead run the action twice, each specifying a file and a flag e.g.
I would recommend trying this with |
Beta Was this translation helpful? Give feedback.
-
@thomasrockhu-codecov Sorry for being unclear in my message! I totally understand that it is currently not possible. What I’m wondering is, would you be interested in changing codecov-action, so that it becomes possible? It feels like a change that would be welcome in v4, and probably not be too hard to implement. Right now our solution is indeed to have multiple calls to the action, but it’s quite a lot of copy-paste, which is never good :/ |
Beta Was this translation helpful? Give feedback.
-
@Ekleog-NEAR oh I see. I'm going to move this our feedback repo and get some input from our PMs. |
Beta Was this translation helpful? Give feedback.
-
Hi @Ekleog-NEAR , This is a feature request, as Tom mentioned, so we'll need for the product team to take a look. Meanwhile, have you check https://docs.codecov.com/docs/components ? It was created to partly address the ask of wanting to cover multiple coverage sections with one upload. |
Beta Was this translation helpful? Give feedback.
-
Hi @Ekleog-NEAR , You are indeed. Sounds like components would not address your use case. (cc: @rohan-at-sentry :) |
Beta Was this translation helpful? Give feedback.
-
Just joining the convo here (seems it has gone stale though).. We are exploring a monorepo setup for our OSS projects and would like to upload/maintain reports for each of the discrete packages, but seems we will need to run this action 9 times to have the desired effect. Would love for this to be implemented! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I’ll start with, this is a duplicate of closed-by-author codecov/codecov-action#243, and of the discussion that happened after codecov/codecov-action#50 was closed.
I’d like to upload multiple reports with different flags. It currently seems to basically require calling the codecov actions multiple times. However, it results in a lot of copy-paste, and workarounds like using
steps: fromJson()
with a custom generator script is even more painful.Would it be possible to upload multiple reports with different flags? I’m thinking of a syntax like:
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions