generate lcov
This commit is contained in:
parent
85221ddbbc
commit
bb5d80096d
11
README.md
11
README.md
@ -15,6 +15,17 @@ A GitHub Action that check minimum coverage percentage!
|
|||||||
min_coverage: 90
|
min_coverage: 90
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Lcov
|
||||||
|
|
||||||
|
```yml
|
||||||
|
- uses: devmasx/coverage-check-action@v1.0.1
|
||||||
|
with:
|
||||||
|
result_path: coverage/example.lcov
|
||||||
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
type: lcov
|
||||||
|
min_coverage: 90
|
||||||
|
```
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
|
|
||||||

|

|
||||||
|
|||||||
@ -6,9 +6,9 @@ branding:
|
|||||||
color: "green"
|
color: "green"
|
||||||
inputs:
|
inputs:
|
||||||
type:
|
type:
|
||||||
description: "simplecov | jest"
|
description: "lcov | simplecov"
|
||||||
required: true
|
required: true
|
||||||
default: "simplecov"
|
default: "lcov"
|
||||||
token:
|
token:
|
||||||
description: "Github token for create checks"
|
description: "Github token for create checks"
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
@ -5,8 +5,8 @@ class CoverageReport
|
|||||||
def generate(type, report_path, data)
|
def generate(type, report_path, data)
|
||||||
if type == 'simplecov'
|
if type == 'simplecov'
|
||||||
simplecov(report_path, data)
|
simplecov(report_path, data)
|
||||||
elsif type == 'jest'
|
elsif type == 'lcov'
|
||||||
jest(report_path, data)
|
lcov(report_path, data)
|
||||||
else
|
else
|
||||||
raise 'InvalidCoverageReportType'
|
raise 'InvalidCoverageReportType'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user