File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ inputs:
34
34
description : ' Additional string that will be concatenated to comment'
35
35
default : null
36
36
37
+ codeCoverageDirectory :
38
+ description : ' code coverage summary location defaults to coverage-summary.json'
39
+ default : coverage-summary.json
37
40
branding :
38
41
color : red
39
42
icon : git-pull-request
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ async function run(): Promise<void> {
17
17
const fullCoverage = JSON . parse ( core . getInput ( 'fullCoverageDiff' ) )
18
18
const commandToRun = core . getInput ( 'runCommand' )
19
19
const additionalCommentInfo = core . getInput ( 'additionalCommentInfo' )
20
+ const codeCoverageDirectory = core . getInput ( 'codeCoverageDirectory' )
20
21
21
22
const delta = Number ( core . getInput ( 'delta' ) )
22
23
const rawTotalDelta = core . getInput ( 'total_delta' )
@@ -40,7 +41,7 @@ async function run(): Promise<void> {
40
41
execSync ( `${ commandToRun } ` )
41
42
42
43
const codeCoverageNew = < CoverageReport > (
43
- JSON . parse ( fs . readFileSync ( 'coverage-summary.json' ) . toString ( ) )
44
+ JSON . parse ( fs . readFileSync ( codeCoverageDirectory ) . toString ( ) )
44
45
)
45
46
46
47
const codeCoverageOld = < CoverageReport > (
You can’t perform that action at this time.
0 commit comments