code-coverage-action icon indicating copy to clipboard operation
code-coverage-action copied to clipboard

multiple reports

Open kevinbarabash opened this issue 5 months ago • 2 comments

I have a project with some JavaScript code and some Go code. Is it safe to use code-coverage-action in multiple jobs in the same GH Actions workflow? Will there be separate comments in the PR for each report?

kevinbarabash avatar Aug 04 '25 15:08 kevinbarabash

@kevinbarabash, ⭐3 XP earned, 🏆First Issue Created completed! Contribute more to raise your XP/Level, complete challenges for extra achievements! [Sign up for personal dashboard]

icon

devactivity-app[bot] avatar Aug 04 '25 15:08 devactivity-app[bot]

Hi @kevinbarabash ,

It is safe to use the same action multiple times from different jobs or within the same if needed. This is actually a recommended way to use it when you have monorepo set up so you can get multiple comments from every execution.

When you're running action multiple times I recommend using app-name parameter. This name is used to generate Barecheck comment title and also to look for previous comments posted by action. For example, when you run action twice with the same name, previously posted comment is edited to make sure PR history remains clean.

vitaliimelnychuk avatar Aug 13 '25 13:08 vitaliimelnychuk