File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,7 @@ runs:
108108 run : |
109109 set -e
110110 bash <(curl -s https://raw.githubusercontent.com/php-actions/php-build/cee5b9fa9fbc4c888e7a62bbb7b8eade18e3c56b/php-build.bash) phpunit
111- echo "text<<EOF" >> $GITHUB_OUTPUT
112- ${{ github.action_path }}/phpunit-action.bash >> $GITHUB_OUTPUT
113- echo "EOF" >> $GITHUB_OUTPUT
114- cat $GITHUB_OUTPUT
111+ ${{ github.action_path }}/phpunit-action.bash || cat ${{ github.workspace }}/output.log
115112 shell : bash
116113
117114branding :
Original file line number Diff line number Diff line change 33github_action_path=$( dirname " $0 " )
44docker_tag=$( cat ./docker_tag)
55
6- echo " output_log= Docker tag: $docker_tag "
6+ echo " Docker tag: $docker_tag " >> output.log 2>&1
77
88if [ -z " $ACTION_PHPUNIT_PATH " ]
99then
1313 phar_url=" ${phar_url} -${ACTION_VERSION} "
1414 fi
1515 phar_url=" ${phar_url} .phar"
16- echo " output_log= Using phar url $phar_url "
16+ echo " Using phar url $phar_url " >> output.log 2>&1
1717
1818 phar_path=" ${github_action_path} /phpunit.phar"
1919 curl -H " User-agent: cURL (https://github.com/php-actions)" -L " $phar_url " > " $phar_path "
2020else
21- echo " output_log= Using vendored phpunit"
21+ echo " Using vendored phpunit" >> output.log 2>&1
2222 phar_path=" ${GITHUB_WORKSPACE} /$ACTION_PHPUNIT_PATH "
2323fi
2424
25- echo " output_log= phar_path=$phar_path "
25+ echo " phar_path=$phar_path " >> output.log 2>&1
2626chmod +x $phar_path
2727command_string=(" phpunit" )
2828
9696 command_string+=($ACTION_ARGS )
9797fi
9898
99- echo " output_log= Command: ${command_string[@]} "
99+ echo " Command: ${command_string[@]} " >> output.log 2>&1
100100
101101docker run --rm \
102102 --volume " ${phar_path} " :/usr/local/bin/phpunit \
You can’t perform that action at this time.
0 commit comments