Skip to content

Commit de654db

Browse files
Make the action working for monorepo (#1)
* Add input to accept monrepo base path * Add input to accept monrepo base path * Add input to accept monrepo base path * Add input to accept monrepo base path * Prettifie * Remove yarn test twice * Remove yarn test twice * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Get all files * Latest master * Latest master * styles * styles * Refractor * Styles * Support for monorepo * Support for monorepo * Support for monorepo * Support for monorepo * Support for monorepo * Support for monorepo * Support for monorepo * Test single repo * Test single repo * Test single repo * Test mono repo * Test mono repo * Chores * Formatting * Formatting * Formatting * Refractoring * Refractoring
1 parent f90571f commit de654db

File tree

15 files changed

+1214
-759
lines changed

15 files changed

+1214
-759
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,24 @@ Total Coverage: <b>99.39%</b>
1616
## Inputs
1717

1818
##### `github-token` (**Required**)
19+
1920
Github token used for posting the comment. To use the key provided by the GitHub
2021
action runner, use `${{ secrets.GITHUB_TOKEN }}`.
2122

2223
##### `lcov-file` (**Optional**)
24+
2325
The location of the lcov file to read the coverage report from. Defaults to
2426
`./coverage/lcov.info`.
2527

2628
##### `lcov-base` (**Optional**)
29+
2730
The location of the lcov file resulting from running the tests in the base
2831
branch. When this is set a diff of the coverage percentages is shown.
2932

33+
##### `monorepo-base` (**Optional**)
34+
35+
The location of the monrepo `packages` path
36+
3037
## Example usage
3138

3239
```yml

action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
name: Code Coverage Report
2-
description: Comments a pull request with the code coverage
3-
author: Romeo Van Snick
2+
description: Comments a pull request with the code coverage for mono repo and single repo
3+
author: 'Eesh Tyagi, Marina, John Hannagan'
44
branding:
55
icon: check-square
66
color: green
77
inputs:
88
github-token:
99
description: Github token
1010
required: true
11+
monorepo-base-path:
12+
description: Location of your monorepo `packages` parent folder. If this is specified then we don't need `lcov-file` and `lcov-base` params
13+
required: false
1114
lcov-file:
12-
description: The location of the lcov.info file
15+
description: The location of the lcov.info file. Applicable for single repo setup.
1316
required: false
1417
lcov-base:
15-
description: The location of the lcov file for the base branch
18+
description: The location of the lcov file for the base branch. Applicable for single repo setup.
1619
required: false
1720
runs:
1821
using: node12

0 commit comments

Comments
 (0)