-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ This action requires that you set the [`CC_TEST_REPORTER_ID`](https://docs.codec | |
| `debug` | `false` | Enable Code Coverage debug output when set to `true`. | | ||
| `coverageLocations` | `[]` | Locations to find code coverage (Used for builds from multiple locations) | | ||
| | | Format is (location:type, e.g. ./coverage/lcov.info:lcov) | | ||
| `prefix` | `undefined` | See [`--prefix`](https://docs.codeclimate.com/docs/configuring-test-coverage) | | ||
|
||
#### Example | ||
|
||
|
@@ -30,4 +31,21 @@ steps: | |
debug: true | ||
``` | ||
#### Example with Jacoco | ||
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
# Set CC_TEST_REPORTER_ID as secret of your repo | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
JACOCO_SOURCE_PATH: "${{github.workspace}}/src/main/java" | ||
with: | ||
# The report file must be there, otherwise Code Climate won't find it | ||
coverageCommand: mvn test | ||
coverageLocations: | ||
"${{github.workspace}}/target/site/jacoco/jacoco.xml:jacoco" | ||
``` | ||
Example project — [paambaati/websight](https://github.com/paambaati/websight/blob/663bd4245b3c2dbd768aff9bfc197103ee77973e/.github/workflows/ci.yml#L33-L49) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.