mirror of
https://github.com/julia-actions/julia-processcoverage.git
synced 2026-02-18 05:56:59 +08:00
Use codecov-action@v2 in examples (#11)
This commit is contained in:
12
README.md
12
README.md
@@ -9,9 +9,9 @@ See [PkgTemplates.jl](https://github.com/invenia/PkgTemplates.jl/blob/master/tes
|
|||||||
```yaml
|
```yaml
|
||||||
|
|
||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
file: lcov.info
|
files: lcov.info
|
||||||
```
|
```
|
||||||
|
|
||||||
One can also specify the directory or directories to use via the `directories` input (which defaults to `src`). E.g.
|
One can also specify the directory or directories to use via the `directories` input (which defaults to `src`). E.g.
|
||||||
@@ -20,17 +20,17 @@ One can also specify the directory or directories to use via the `directories` i
|
|||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
with:
|
with:
|
||||||
directories: src,examples
|
directories: src,examples
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
file: lcov.info
|
files: lcov.info
|
||||||
```
|
```
|
||||||
instructs the action to look for coverage information in both `src` and an `examples` folder. Likewise, use
|
instructs the action to look for coverage information in both `src` and an `examples` folder. Likewise, use
|
||||||
```yaml
|
```yaml
|
||||||
- uses: julia-actions/julia-processcoverage@v1
|
- uses: julia-actions/julia-processcoverage@v1
|
||||||
with:
|
with:
|
||||||
directories: path/to/subdir/package/src
|
directories: path/to/subdir/package/src
|
||||||
- uses: codecov/codecov-action@v1
|
- uses: codecov/codecov-action@v2
|
||||||
with:
|
with:
|
||||||
file: lcov.info
|
files: lcov.info
|
||||||
```
|
```
|
||||||
to get coverage information from a package in a subdirectory of the repo.
|
to get coverage information from a package in a subdirectory of the repo.
|
||||||
|
|||||||
Reference in New Issue
Block a user