mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-23 20:27:02 +08:00
add flags documentation
This commit is contained in:
@@ -14,6 +14,7 @@ steps:
|
|||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}} #for private repos
|
token: ${{secrets.CODECOV_TOKEN}} #for private repos
|
||||||
file: ./coverage.xml #optional
|
file: ./coverage.xml #optional
|
||||||
|
flags: unittests #optional
|
||||||
```
|
```
|
||||||
>**Note**: This assumes that you've set your Codecov token inside settings > secrets as `CODECOV_TOKEN`. If not, you can get an upload token for your specific repo on codecov.io. A token is *not* required for public repositories.
|
>**Note**: This assumes that you've set your Codecov token inside settings > secrets as `CODECOV_TOKEN`. If not, you can get an upload token for your specific repo on codecov.io. A token is *not* required for public repositories.
|
||||||
|
|
||||||
@@ -44,14 +45,16 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
|
flags: unittests
|
||||||
```
|
```
|
||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
| Argument | Description |
|
| Input | Description |
|
||||||
| :---: | :---: |
|
| :---: | :---: |
|
||||||
| `token` | Used to authorize coverage report uploads |
|
| `token` | Used to authorize coverage report uploads |
|
||||||
| `file` | Location of the coverage report |
|
| `file` | Location of the coverage report |
|
||||||
|
| `flags` | Flag upload to group coverage metrics |
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
Reference in New Issue
Block a user