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 with: files: ./packages/A/coverage/lcov.info flags: flag_a name: A - uses: codecov/codecov-action@v1 with: 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.