Commit 12d23cc 1 parent 8e1cba0 commit 12d23cc Copy full SHA for 12d23cc
File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ The action's step needs to run after your test suite has outputted an LCOV file.
30
30
| ` compare-sha ` | _ optional_ | Commit SHA to compare coverage with. |
31
31
| ` debug ` | _ optional_ | Default: ` false ` . Set to ` true ` to enable debug logging. |
32
32
| ` measure ` | _ optional_ | Default: ` false ` . Set to ` true ` to enable time time measurement logging. |
33
+ | ` fail-on-error ` | _ optional_ | Default: ` true ` . Set to ` false ` to avoid CI failure when upload fails due to any errors. |
33
34
34
35
### Outputs:
35
36
Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ inputs:
59
59
description : ' Show execution time of parsing and reporting'
60
60
required : false
61
61
default : false
62
+ fail-on-error :
63
+ description : ' Whether to fail (exit code 1) on any issues while uploading the coverage'
64
+ required : false
65
+ default : true
62
66
outputs :
63
67
coveralls-api-result :
64
68
description : ' Result status of Coveralls API post.'
@@ -104,7 +108,11 @@ runs:
104
108
- name : Done report
105
109
if : inputs.parallel-finished == 'true'
106
110
shell : bash
107
- run : coveralls done ${{ inputs.debug == 'true' && '--debug' || '' }} ${{ inputs.measure == 'true' && '--measure' || '' }}
111
+ run : >-
112
+ coveralls done
113
+ ${{ inputs.debug == 'true' && '--debug' || '' }}
114
+ ${{ inputs.measure == 'true' && '--measure' || '' }}
115
+ ${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
108
116
env :
109
117
COVERALLS_DEBUG : ${{ inputs.debug }}
110
118
COVERALLS_CARRYFORWARD_FLAGS : ${{ inputs.carryforward }}
@@ -122,6 +130,7 @@ runs:
122
130
coveralls report
123
131
${{ inputs.debug == 'true' && '--debug' || '' }}
124
132
${{ inputs.measure == 'true' && '--measure' || '' }}
133
+ ${{ inputs.fail-on-error == 'false' && '--no-fail' || '' }}
125
134
${{ inputs.allow-empty == 'true' && '--allow-empty' || '' }}
126
135
${{ inputs.base-path && format('--base-path {0}', inputs.base-path) || '' }}
127
136
${{ inputs.format && format('--format {0}', inputs.format) || '' }}
You can’t perform that action at this time.
0 commit comments