mirror of
https://github.com/codecov/codecov-action.git
synced 2026-04-19 20:22:34 +08:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
954f2171b8 | ||
|
|
83134b4d62 | ||
|
|
da90402a6e | ||
|
|
86b28dee2c |
@@ -1,4 +1,4 @@
|
|||||||
<p align="center"><img src="./codecov-logo.png" /></p>
|
<!-- <p align="center"><img src="./codecov-logo.png" /></p> -->
|
||||||
|
|
||||||
# Codecov Github Action
|
# Codecov Github Action
|
||||||
### Easily upload coverage reports to Codecov from Github Actions
|
### Easily upload coverage reports to Codecov from Github Actions
|
||||||
@@ -10,11 +10,11 @@ Inside your `.github/workflows/workflow.yml` file:
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- uses: actions/codecov-action@v1
|
- uses: actions/codecov-action@v0.1
|
||||||
with:
|
with:
|
||||||
token: ${{secrets.CODECOV_TOKEN}}
|
token: ${{secrets.CODECOV_TOKEN}}
|
||||||
```
|
```
|
||||||
>**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
|
>**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.
|
||||||
|
|
||||||
## Arguments
|
## Arguments
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ author: 'Ib @ Codecov'
|
|||||||
inputs:
|
inputs:
|
||||||
token:
|
token:
|
||||||
description: 'Set the repository token'
|
description: 'Set the repository token'
|
||||||
required: true
|
required: false
|
||||||
branding:
|
branding:
|
||||||
color: 'red'
|
color: 'red'
|
||||||
icon: 'umbrella'
|
icon: 'umbrella'
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ set -eu
|
|||||||
|
|
||||||
if [ $# -eq 0 ]
|
if [ $# -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "No arguments supplied. Please make sure to provide an upload token"
|
bash <(curl -s https://codecov.io/bash)
|
||||||
exit 1
|
else
|
||||||
|
bash <(curl -s https://codecov.io/bash) -t $1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bash <(curl -s https://codecov.io/bash) -t $1
|
|
||||||
Reference in New Issue
Block a user