Skip to content

Commit 7488388

Browse files
authored
Merge pull request codecov#59 from DavidCain/dcain/update_token_instructions
Add GitHub Actions example, note no token needed
2 parents 9500518 + c4eb5da commit 7488388

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@
44

55
## Guide
66

7+
### GitHub Actions
8+
A minimal configuration for public repos:
9+
10+
```yml
11+
steps:
12+
# (Other steps go here)
13+
- name: "Upload coverage to Codecov"
14+
uses: codecov/codecov-action@v1
15+
with:
16+
fail_ci_if_error: true
17+
```
18+
19+
See [codecov/codecov-action](https://github.com/codecov/codecov-action) for
20+
more information, a [detailed example](https://github.com/codecov/codecov-action#example-workflowyml-with-codecov-action),
21+
and other options.
22+
723
### Travis Setup
824
925
Add the following to your `.travis.yml`:
@@ -66,7 +82,9 @@ commands = codecov
6682

6783
## Caveats
6884
### Private Repo
69-
Repository tokens are required for (a) all private repos, (b) public repos not using Travis-CI, CircleCI or AppVeyor. Find your repository token at Codecov and provide via appending `-t <your upload token>` to you where you upload reports.
85+
Repository tokens are required for (a) all private repos, (b) public repos not using the GitHub Actions, Travis CI, CircleCI or AppVeyor.
86+
87+
Find your repository token at Codecov and provide via appending `-t <your upload token>` to you where you upload reports.
7088

7189
### Cobertura Reports
7290
Cobertura reports can expire - Codecov will reject reports that are older than 12 hours. The logs contain details if a report expired.

0 commit comments

Comments
 (0)