File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,10 @@ inputs:
8181 description : Extra arguments to pass to the phpunit binary
8282 required : false
8383
84+ outputs :
85+ output_log :
86+ description : An output log of the build process
87+
8488runs :
8589 using : " composite"
8690 steps :
@@ -105,8 +109,10 @@ runs:
105109 ACTION_MEMORY_LIMIT : ${{ inputs.memory_limit }}
106110 ACTION_ARGS : ${{ inputs.args }}
107111 id : phpunit_run
108- run : bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/cee5b9fa9fbc4c888e7a62bbb7b8eade18e3c56b/php-build.bash) phpunit \
109- && ${{ github.action_path }}/phpunit-action.bash || { cat ${{ github.workspace }}/output.log >> $GITHUB_OUTPUT ; exit 1; }
112+ run : |
113+ set -e
114+ bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/cee5b9fa9fbc4c888e7a62bbb7b8eade18e3c56b/php-build.bash) phpunit
115+ ${{ github.action_path }}/phpunit-action.bash >> $GITHUB_OUTPUT
110116 shell : bash
111117
112118branding :
Original file line number Diff line number Diff line change 22set -e
33github_action_path=$( dirname " $0 " )
44docker_tag=$( cat ./docker_tag)
5- echo " Docker tag: $docker_tag " >> output.log 2>&1
5+ echo " output_log= Docker tag: $docker_tag "
66
77if [ -n " $ACTION_PHPUNIT_PATH " ]
88then
9- echo " Using phar" >> output.log 2>&1
9+ echo " output_log= Using phar"
1010 phar_url=" https://phar.phpunit.de/phpunit"
1111 if [ " $ACTION_VERSION " != " latest" ]
1212 then
1919 phar_path=" ${github_action_path} /phpunit.phar"
2020else
2121 phar_path=" ${GITHUB_WORKSPACE} /$ACTION_PHPUNIT_PATH "
22- echo " Using vendored phpunit: $phar_path " >> output.log 2>&1
22+ echo " output_log= Using vendored phpunit: $phar_path "
2323fi
2424
2525command_string=(" phpunit" )
9494 command_string+=($ACTION_ARGS )
9595fi
9696
97-
98- echo " Command: " " ${command_string[@]} " >> output.log 2>&1
97+ echo " output_log=Command: " " ${command_string[@]} "
9998
10099docker run --rm \
101100 --volume " ${phar_path} " :/usr/local/bin/phpunit \
You can’t perform that action at this time.
0 commit comments