You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| exclude | List of paths to exclude from the coverage report, separated by an empty space. Supports [globs](<https://en.wikipedia.org/wiki/Glob_(programming)>) to describe file patterns. |`""`| ✅ |
24
24
25
25
## Example usage
26
26
27
27
```yaml
28
28
uses: VeryGoodOpenSource/very_good_coverage@v2
29
29
with:
30
-
path: './coverage/lcov.info'
30
+
path: '/coverage/lcov.info'
31
31
min_coverage: 95
32
32
exclude: '**/*_observer.dart **/change.dart'
33
33
```
@@ -50,17 +50,40 @@ If your generated lcov file is empty this might be because you have no test file
50
50
51
51
If you wish to always bypass these warnings, we recommend using a conditional statement in your workflow to avoid running the Very Good Coverage action when the lcov file is empty or non-existent.
52
52
53
-
For example, if your non-existent or empty coverage file is meant to be located at `./coverage/lcov.info` you may do:
53
+
For example, if your non-existent or empty coverage file is meant to be located at `/coverage/lcov.info` you may do:
54
54
55
55
```yaml
56
56
- name: Check for existing and non-empty coverage file
57
57
id: test_coverage_file
58
-
run: if [ -s "./coverage/lcov.info" ]; then echo "result=true" >> $GITHUB_OUTPUT ; else echo "result=false" >> $GITHUB_OUTPUT; fi
58
+
run: if [ -s "/coverage/lcov.info" ]; then echo "result=true" >> $GITHUB_OUTPUT ; else echo "result=false" >> $GITHUB_OUTPUT; fi
The input path must be absolute. The specified working directory is ignored by the input path. This is because it is [not possible](https://github.com/actions/runner/issues/467) to access the working directory from an action. In other words, Very Good Coverage always runs from the root of your repository.
71
+
72
+
For example, if your working directory is `my_project` and your file is at `/my_project/coverage/lcov.info` you must do:
0 commit comments