Skip to content

Commit

Permalink
Merge pull request #151 from codecov/verbose
Browse files Browse the repository at this point in the history
Add verbosity
  • Loading branch information
thomasrockhu committed Oct 18, 2020
2 parents dade30a + 5f38498 commit 7d5dfa5
Show file tree
Hide file tree
Showing 7 changed files with 34,639 additions and 33,856 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -17,3 +17,11 @@ jobs:
file: ./coverage/coverage-final.json
flags: unittest
name: codecov-1
- name: Upload coverage to Codecov (verbose)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/index/coverage-final.json
file: ./coverage/coverage-final.json
flags: unittest
name: codecov-1
verbose: true
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -25,6 +25,7 @@ steps:
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
```
>**Note**: This assumes that you've set your Codecov token inside *Settings > Secrets* as `CODECOV_TOKEN`. If not, you can [get an upload token](https://docs.codecov.io/docs/frequently-asked-questions#section-where-is-the-repository-upload-token-found-) for your specific repo on [codecov.io](https://www.codecov.io). Keep in mind that secrets are *not* available to forks of repositories.
Expand All @@ -45,6 +46,7 @@ Codecov's Action currently supports five inputs from the user: `token`, `file`,
| `name` | Custom defined name for the upload | Optional
| `fail_ci_if_error` | Specify if CI pipeline should fail when Codecov runs into errors during upload. *Defaults to **false*** | Optional
| `path_to_write_report` | Write upload file to path before uploading | Optional
| `verbose` | Specify whether the Codecov output should be verbose | Optional

### Example `workflow.yml` with Codecov Action

Expand Down Expand Up @@ -83,6 +85,7 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.gz
verbose: true
```
## Contributing

Expand All @@ -93,4 +96,4 @@ Contributions are welcome! Check out the [Contribution Guide](CONTRIBUTING.md).
The code in this project is released under the [MIT License](LICENSE).


[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fcodecov-action?ref=badge_large)
3 changes: 3 additions & 0 deletions action.yml
Expand Up @@ -29,6 +29,9 @@ inputs:
fail_ci_if_error:
description: 'Specify whether or not CI build should fail if Codecov runs into an error during upload'
required: false
verbose:
description: 'Specify whether the Codecov output should be verbose'
required: false
branding:
color: 'red'
icon: 'umbrella'
Expand Down

0 comments on commit 7d5dfa5

Please sign in to comment.