-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
629 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ This action requires that you set the [`CC_TEST_REPORTER_ID`](https://docs.codec | |
|
||
| Input | Default | Description | | ||
| ------------------- | --------------- | ---------------------------------------------------------------------------------- | | ||
| `coverageCommand` | `yarn coverage` | The actual command that should be executed to run your tests and capture coverage. | | ||
| `coverageCommand` | | The actual command that should be executed to run your tests and capture coverage. | | ||
| `workingDirectory` | | Specify a custom working directory where the coverage command should be executed. | | ||
| `debug` | `false` | Enable Code Coverage debug output when set to `true`. | | ||
| `coverageLocations` | | Locations to find code coverage as a multiline string.<br>Each line should be of the form `<location>:<type>`. See examples below. | ||
|
@@ -23,20 +23,32 @@ This action requires that you set the [`CC_TEST_REPORTER_ID`](https://docs.codec | |
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v2.6.0 | ||
uses: paambaati/codeclimate-action@v2.7.2 | ||
env: | ||
CC_TEST_REPORTER_ID: <code_climate_reporter_id> | ||
with: | ||
coverageCommand: npm run coverage | ||
debug: true | ||
``` | ||
#### Example with only upload | ||
When you've already generated the coverage report in a previous step and wish to just upload the coverage data to Code Climate, you can leave out the `coverageCommand` option. | ||
|
||
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/[email protected] | ||
env: | ||
CC_TEST_REPORTER_ID: <code_climate_reporter_id> | ||
``` | ||
|
||
#### Example with multiple coverage locations | ||
|
||
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v2.6.0 | ||
uses: paambaati/codeclimate-action@v2.7.2 | ||
env: | ||
CC_TEST_REPORTER_ID: <code_climate_reporter_id> | ||
with: | ||
|
@@ -51,7 +63,7 @@ steps: | |
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v2.6.0 | ||
uses: paambaati/codeclimate-action@v2.7.2 | ||
env: | ||
# Set CC_TEST_REPORTER_ID as secret of your repo | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
|
@@ -92,7 +104,7 @@ module.exports = { | |
```yaml | ||
steps: | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v2.6.0 | ||
uses: paambaati/codeclimate-action@v2.7.2 | ||
env: | ||
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.