Optimal usage in a monorepo with separate flags for each package

I was just wondering what’s the best way to use configure codecov for a monorepo. For example, let’s say I have packages A and B under my monorepo. The way I’m currently using the action is by using multiple uses statement in my github workflow yaml file like the following:-

- uses: codecov/codecov-action@v1
    files: ./packages/A/coverage/lcov.info
    flags: flag_a
    name: A
- uses: codecov/codecov-action@v1
    files: ./packages/B/coverage/lcov.info
    flags: flag_b
    name: B

I know it’s possible to use a comma-separated value to upload multiple files, but I have to set a separate flag for each package, and doing it that way doesn’t seem to work. I have over 20 packages in my monorepo so its a bit tedious to add these manually.
Thank you.

Hi @Devorein, unfortunately, this is not something that we are able to support in an easier way. Flags inherently are tied to a coverage report as opposed to by file paths.

I can’t promise we’ll be able to make a change to make this easier in the near future, but what would an ideal solution look like for you?