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
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ This GitHub Action (written in JavaScript) allows you to leverage GitHub Actions
5
5
- Commenting on a pull request (if the workflow was triggered by this event)
6
6
- Failing if a minimum coverage is not met
7
7
8
+
Based on the code from [zgosalvez/github-actions-report-lcov](https://github.com/zgosalvez/github-actions-report-lcov).
9
+
8
10
## Usage
9
11
### Pre-requisites
10
12
Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#common-workflow) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
@@ -46,7 +48,7 @@ jobs:
46
48
- name: Setup LCOV
47
49
uses: hrishikesh-kadam/setup-lcov@v1
48
50
- name: Report code coverage
49
-
uses: zgosalvez/github-actions-report-lcov@v3
51
+
uses: mbta/github-actions-report-lcov@v4
50
52
with:
51
53
coverage-files: coverage/lcov.*.info
52
54
minimum-coverage: 90
@@ -55,11 +57,13 @@ jobs:
55
57
working-directory: apps/my-first-app
56
58
update-comment: true
57
59
```
58
-
*Note:* Only the `pull_request` and `pull_request_target` events are supported. This action does nothing when triggered by other event types.
60
+
*Note:* Only the following events are supported:
59
61
60
-
### Flutter Workflows
62
+
- `pull_request`
63
+
- `pull_request_target`
64
+
- `workflow_run`(when triggered by a PR)
61
65
62
-
This is used in my opinionated [GitHub Actions: Flutter Workflows](https://github.com/zgosalvez/github-actions-flutter-workflows) repository along with other actions for a complete end-to-end DevOps experience.
66
+
This action does nothing when triggered by other event types.
63
67
64
68
## License
65
69
The scripts and documentation in this project are released under the [MIT License](LICENSE.md)
0 commit comments