Skip to content

Commit c924677

Browse files
authored
feat: added support to exclude files (#13)
1 parent 97b5b30 commit c924677

File tree

10 files changed

+1411
-13
lines changed

10 files changed

+1411
-13
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,15 @@ jobs:
2121
- uses: ./
2222
with:
2323
path: "./fixtures/lcov.100.info"
24+
- uses: ./
25+
with:
26+
path: "./fixtures/lcov.95.info"
27+
min_coverage: 90
28+
- uses: ./
29+
with:
30+
path: "./fixtures/lcov.95.info"
31+
exclude: "**/*_observer.dart"
32+
- uses: ./
33+
with:
34+
path: "./fixtures/lcov.95.info"
35+
exclude: "**/whatever.dart **/*_observer.dart **/does_not_matter.dart"

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,17 @@ with:
3131
path: "./coverage/lcov.info"
3232
min_coverage: 95
3333
```
34+
35+
### `exclude`
36+
37+
**Optional** List of files that you want to exclude from the coverage report, and separated by an empty space ` `. You can also use `globs` to describe file patterns.
38+
39+
## Example usage
40+
41+
```yaml
42+
uses: VGVentures/[email protected]
43+
with:
44+
path: "./coverage/lcov.95.info"
45+
min_coverage: 100
46+
exclude: "**/*_observer.dart **/change.dart"
47+
```

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ inputs:
1212
description: 'minimum coverage percentage allowed'
1313
required: false
1414
default: 100
15+
exclude:
16+
description: 'list of files you would like to exclude from coverage'
17+
required: false
1518
runs:
1619
using: 'node12'
1720
main: 'dist/index.js'

0 commit comments

Comments
 (0)