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
> [GitHub Action](https://help.github.com/en/actions) to assist the pull request with code coverage stats
5
-
- ✅ Code coverage comment for monorepo
6
-
- ✅ Code coverage comment for single repo
7
-
- ✅ Code coverage diff from base branch
6
+
7
+
- ✅ Code coverage comment for monorepo
8
+
- ✅ Code coverage comment for single repo
9
+
- ✅ Code coverage diff from base branch
8
10
9
11
The report is based on the lcov coverage report generated by your test runner.
10
12
@@ -13,21 +15,20 @@ The report is based on the lcov coverage report generated by your test runner.
13
15
Just add this action to one of your [workflow files](https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow):
14
16
15
17
```yml
16
-
- name: Add coverage comment
17
-
uses: ScaCap/code-coverage-assistant@v1
18
+
- name: Add coverage comment
19
+
uses: ScaCap/code-coverage-assistant@v1
18
20
```
19
21
20
-
21
22
### Action inputs
22
23
23
24
The possible inputs for this action are:
24
25
25
-
| Parameter | Description | Default |
26
-
| --------- | ----------- | ------- |
27
-
| `github-token` (**Required**) | Github token used for posting the comment. To use the key provided by the GitHub action runner, use `${{ secrets.GITHUB_TOKEN }}`. | |
28
-
| `monorepo-base-path` (**Optional**) | The location of your monrepo `packages` path| |
29
-
| `lcov-file` (**Optional**) | The location of the lcov file to read the coverage report. `Needed only for single repos` | `./coverage/lcov.info` |
30
-
| `lcov-base` (**Optional**) | The location of the lcov file resulting from running the tests in the base branch. When this is set a diff of the coverage percentages is shown. `Needed only for single repos`.| |
| `github-token` (**Required**) | Github token used for posting the comment. To use the key provided by the GitHub action runner, use `${{ secrets.GITHUB_TOKEN }}`. | |
29
+
| `monorepo-base-path` (**Optional**) | The location of your monrepo `packages` path | |
30
+
| `lcov-file` (**Optional**) | The location of the lcov file to read the coverage report. `Needed only for single repos` | `./coverage/lcov.info` |
31
+
| `lcov-base` (**Optional**) | The location of the lcov file resulting from running the tests in the base branch. When this is set a diff of the coverage percentages is shown. `Needed only for single repos`. | |
31
32
32
33
## Examples
33
34
@@ -37,7 +38,7 @@ The possible inputs for this action are:
37
38
uses: ScaCap/code-coverage-assistant@v1
38
39
with:
39
40
github-token: ${{ secrets.GITHUB_TOKEN }}
40
-
monorepo-base-path: './packages'
41
+
monorepo-base-path: "./packages"
41
42
```
42
43
43
44

@@ -48,7 +49,7 @@ with:
48
49
uses: ScaCap/code-coverage-assistant@v1
49
50
with:
50
51
github-token: ${{ secrets.GITHUB_TOKEN }}
51
-
lcov-file: './app/coverage/lcov.info'
52
+
lcov-file: "./app/coverage/lcov.info"
52
53
```
53
54
54
55

@@ -61,11 +62,41 @@ with:
61
62
uses: ScaCap/code-coverage-assistant@v1
62
63
with:
63
64
github-token: ${{ secrets.GITHUB_TOKEN }}
64
-
monorepo-base-path: './packages'
65
+
monorepo-base-path: "./packages"
65
66
```
66
67
67
68

68
69
70
+
## Development
71
+
72
+
### Contributing
73
+
74
+
Contributions are encouraged! Fork this repo and open a pull request.
0 commit comments