Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JaCoCo with Maven multi-module or Gradle multi-project builds #208

Open
derekm opened this issue Jul 27, 2020 · 2 comments
Open

JaCoCo with Maven multi-module or Gradle multi-project builds #208

derekm opened this issue Jul 27, 2020 · 2 comments
Assignees
Labels
external Depends on an external resource/project help wanted Extra attention is needed

Comments

@derekm
Copy link

derekm commented Jul 27, 2020

Describe the bug
coverageLocations can be multiple values, but JACOCO_SOURCE_PATH can only contain one value.

In a Java build that produces multiple jars, I need a different JaCoCo source path per coverage location.

Version of codeclimate-action you're using
v2.5.7

Expected behavior
I should be able to specify the source paths for each coverage location.

Additional context
This may need to be reported upstream here: https://github.com/codeclimate/test-reporter

@derekm derekm added the bug Something isn't working label Jul 27, 2020
@paambaati paambaati added help wanted Extra attention is needed external Depends on an external resource/project labels Sep 22, 2020
@paambaati paambaati removed the bug Something isn't working label Oct 1, 2020
@fnobilia
Copy link

fnobilia commented Nov 19, 2020

Hi guys! I'm having the same issue. Here you can see an example of the error, and this is the PR where I am adding the action.

@afranken
Copy link

afranken commented Nov 1, 2021

Looking at the codeclimate test-reporter's code reveals that a whitespace separated list is expected as input:
codeclimate/test-reporter@b2ae857

Unfortunately, this action does not support globbing for the environment variables (I'm guessing that it's not possible to re-set an environment variable from within the running action?), so while I can use tree globbing "**" for the coverageLocations, I have to explicitly list every modules source directories...

Working example:
https://github.com/afranken/advent-of-code-java/blob/main/.github/workflows/maven-ci.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external Depends on an external resource/project help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants