mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 05:27:24 +00:00
add documentation for file path
This commit is contained in:
parent
c1b452a1b8
commit
a4dba2e03e
1 changed files with 5 additions and 2 deletions
|
|
@ -12,9 +12,10 @@ steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: actions/codecov-action@v0.2
|
- uses: actions/codecov-action@v0.2
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}} #optional
|
||||||
|
file: ./coverage.xml #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.
|
||||||
|
|
||||||
### Example `workflow.yml` with Codecov Action
|
### Example `workflow.yml` with Codecov Action
|
||||||
|
|
||||||
|
|
@ -42,6 +43,7 @@ jobs:
|
||||||
uses: codecov/codecov-action@v0.2
|
uses: codecov/codecov-action@v0.2
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
|
file: ./coverage.xml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
@ -49,6 +51,7 @@ jobs:
|
||||||
| Argument | Description |
|
| Argument | Description |
|
||||||
| :---: | :---: |
|
| :---: | :---: |
|
||||||
| `token` | Used to authorize coverage report uploads |
|
| `token` | Used to authorize coverage report uploads |
|
||||||
|
| `file` | Location of the coverage report |
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue