File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ inputs:
104104 description : Generate code coverage report in PHPUnit XML format
105105 required : false
106106
107+ colors :
108+ description : Use colors in output ("never", "auto" or "always")
109+ default : auto
110+
107111 args :
108112 description : Extra arguments to pass to the phpunit binary
109113 required : false
@@ -137,6 +141,7 @@ runs:
137141 ACTION_COVERAGE_PHP : ${{ inputs.coverage_php }}
138142 ACTION_COVERAGE_TEXT : ${{ inputs.coverage_text }}
139143 ACTION_COVERAGE_XML : ${{ inputs.coverage_xml }}
144+ ACTION_COLORS : ${{ inputs.colors }}
140145 ACTION_ARGS : ${{ inputs.args }}
141146
142147 id : phpunit_run
Original file line number Diff line number Diff line change @@ -151,7 +151,10 @@ then
151151 command_string+=(--coverage-xml " $ACTION_COVERAGE_XML " )
152152fi
153153
154- command_string+=(--colors=always)
154+ if [ -= n " $ACTION_COLORS " ]
155+ then
156+ command_string+=(--colors=$ACTION_COLORS )
157+ fi
155158
156159if [ -n " $ACTION_ARGS " ]
157160then
You can’t perform that action at this time.
0 commit comments