Skip to content

Commit 8e1cba0

Browse files
authored
feat: add measure option (#183)
1 parent cb1c78c commit 8e1cba0

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ The action's step needs to run after your test suite has outputted an LCOV file.
2929
| `compare-ref` | _optional_ | Branch name to compare coverage with. Specify if you want to always check coverage change for PRs against one branch. |
3030
| `compare-sha` | _optional_ | Commit SHA to compare coverage with. |
3131
| `debug` | _optional_ | Default: `false`. Set to `true` to enable debug logging. |
32+
| `measure` | _optional_ | Default: `false`. Set to `true` to enable time time measurement logging. |
3233

3334
### Outputs:
3435

action.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ inputs:
5555
description: 'Enable debug output'
5656
required: false
5757
default: false
58+
measure:
59+
description: 'Show execution time of parsing and reporting'
60+
required: false
61+
default: false
5862
outputs:
5963
coveralls-api-result:
6064
description: 'Result status of Coveralls API post.'
@@ -100,7 +104,7 @@ runs:
100104
- name: Done report
101105
if: inputs.parallel-finished == 'true'
102106
shell: bash
103-
run: coveralls done ${{ inputs.debug == 'true' && '--debug' || '' }}
107+
run: coveralls done ${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.measure == 'true' && '--measure' || '' }}
104108
env:
105109
COVERALLS_DEBUG: ${{ inputs.debug }}
106110
COVERALLS_CARRYFORWARD_FLAGS: ${{ inputs.carryforward }}
@@ -117,6 +121,7 @@ runs:
117121
run: >-
118122
coveralls report
119123
${{ inputs.debug == 'true' && '--debug' || '' }}
124+
${{ inputs.measure == 'true' && '--measure' || '' }}
120125
${{ inputs.allow-empty == 'true' && '--allow-empty' || '' }}
121126
${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }}
122127
${{ inputs.format && format('--format {0}', inputs.format) || '' }}

0 commit comments

Comments
 (0)