This repository has been archived on 2023-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Miguel Savignano d734a59c05
Lcov report (#2)
* execute node bin

* calculate percentage for lcov file

* install node in docker image

* use relative path to bin folder

* update readme
2019-11-03 02:05:38 +01:00

33 lines
603 B
Markdown

## Coverage check
A GitHub Action that check minimum coverage percentage!
### Usage
#### Lcov
```yml
- uses: devmasx/coverage-check-action@v1.1.0
with:
type: lcov
result_path: coverage/example.lcov
min_coverage: 90
token: ${{secrets.GITHUB_TOKEN}}
```
#### [Simplecov](https://github.com/colszowka/simplecov)
```yml
- uses: devmasx/coverage-check-action@v1.1.0
with:
type: simplecov
result_path: coverage/.last_run.json
min_coverage: 90
token: ${{secrets.GITHUB_TOKEN}}
```
## Screenshots
![Success](./screenshots/success.png)
![Fail](./screenshots/fail.png)