mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
125f8ba18b | ||
|
|
6a600290f3 | ||
|
|
839122bfbb | ||
|
|
3f456df687 | ||
|
|
c465c373d0 | ||
|
|
954f2171b8 | ||
|
|
83134b4d62 | ||
|
|
da90402a6e | ||
|
|
86b28dee2c |
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
||||
<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
|
||||
|
||||
## Usage
|
||||
@@ -10,11 +10,11 @@ Inside your `.github/workflows/workflow.yml` file:
|
||||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: actions/codecov-action@v1
|
||||
- uses: actions/codecov-action@v0.2
|
||||
with:
|
||||
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
|
||||
|
||||
@@ -25,4 +25,4 @@ steps:
|
||||
|
||||
## License
|
||||
|
||||
The code in this project is released under the MIT License
|
||||
The code in this project is released under the MIT License
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
name: 'Codecov'
|
||||
description: 'Github action that uploads coverage reports for your repository to codecov.io'
|
||||
description: 'GitHub action that uploads coverage reports for your repository to codecov.io'
|
||||
author: 'Ib @ Codecov'
|
||||
inputs:
|
||||
token:
|
||||
description: 'Set the repository token'
|
||||
required: true
|
||||
required: false
|
||||
branding:
|
||||
color: 'red'
|
||||
icon: 'umbrella'
|
||||
|
||||
BIN
codecov-logo.png
BIN
codecov-logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 12 KiB |
@@ -4,8 +4,8 @@ set -eu
|
||||
|
||||
if [ $# -eq 0 ]
|
||||
then
|
||||
echo "No arguments supplied. Please make sure to provide an upload token"
|
||||
exit 1
|
||||
bash <(curl -s https://codecov.io/bash)
|
||||
else
|
||||
bash <(curl -s https://codecov.io/bash) -t $1
|
||||
fi
|
||||
|
||||
bash <(curl -s https://codecov.io/bash) -t $1
|
||||
Reference in New Issue
Block a user