-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: OpenCover Badge Generator | ||
uses: danpetitt/[email protected].3 | ||
uses: danpetitt/[email protected].6 | ||
with: | ||
path-to-opencover-xml: ./test/opencover.xml | ||
path-to-badges: ./ | ||
|
@@ -34,3 +34,21 @@ Once generated you will get two badges called `coverage-badge-line.svg` and `cov | |
```markdown | ||
[![Coverage Status](./coverage-badge-line.svg)](https://github.com/danpetitt/open-cover-badge-generator-action/) | ||
``` | ||
|
||
## Inputs | ||
|
||
### `path-to-opencover-xml` | ||
|
||
**Required** Path to the open cover xml file | ||
|
||
### `path-to-badges` | ||
|
||
**Optional** Path where the line and branch coverage svgs would be saved; these will be saved with the names coverage-badge-line.svg and coverage-badge-branch.svg; if not specified the files will be saved into the project root. Default `"./"`. | ||
|
||
### `minimum-coverage` | ||
|
||
**Required** Threshold percentage at which a red badge would appear. | ||
|
||
### `repo-token` | ||
|
||
**Required** GitHub repo token so that the changed file can be committed, like `${{ secrets.CI_TOKEN }}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters