diff --git a/README.md b/README.md index ecda253f..4d1d91f4 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ The action's step needs to run after your test suite has outputted an LCOV file. | `compare-ref` | _optional_ | Branch name to compare coverage with. Specify if you want to always check coverage change for PRs against one branch. | | `compare-sha` | _optional_ | Commit SHA to compare coverage with. | | `debug` | _optional_ | Default: `false`. Set to `true` to enable debug logging. | +| `measure` | _optional_ | Default: `false`. Set to `true` to enable time time measurement logging. | ### Outputs: diff --git a/action.yml b/action.yml index c6355266..8b298d96 100644 --- a/action.yml +++ b/action.yml @@ -55,6 +55,10 @@ inputs: description: 'Enable debug output' required: false default: false + measure: + description: 'Show execution time of parsing and reporting' + required: false + default: false outputs: coveralls-api-result: description: 'Result status of Coveralls API post.' @@ -100,7 +104,7 @@ runs: - name: Done report if: inputs.parallel-finished == 'true' shell: bash - run: coveralls done ${{ inputs.debug == 'true' && '--debug' || '' }} + run: coveralls done ${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.measure == 'true' && '--measure' || '' }} env: COVERALLS_DEBUG: ${{ inputs.debug }} COVERALLS_CARRYFORWARD_FLAGS: ${{ inputs.carryforward }} @@ -117,6 +121,7 @@ runs: run: >- coveralls report ${{ inputs.debug == 'true' && '--debug' || '' }} + ${{ inputs.measure == 'true' && '--measure' || '' }} ${{ inputs.allow-empty == 'true' && '--allow-empty' || '' }} ${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }} ${{ inputs.format && format('--format {0}', inputs.format) || '' }}