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:
81
81
description : Extra arguments to pass to the phpunit binary
82
82
required : false
83
83
84
+ outputs :
85
+ output_log :
86
+ description : An output log of the build process
87
+
84
88
runs :
85
89
using : " composite"
86
90
steps :
@@ -105,8 +109,10 @@ runs:
105
109
ACTION_MEMORY_LIMIT : ${{ inputs.memory_limit }}
106
110
ACTION_ARGS : ${{ inputs.args }}
107
111
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
110
116
shell : bash
111
117
112
118
branding :
Original file line number Diff line number Diff line change 2
2
set -e
3
3
github_action_path=$( dirname " $0 " )
4
4
docker_tag=$( cat ./docker_tag)
5
- echo " Docker tag: $docker_tag " >> output.log 2>&1
5
+ echo " output_log= Docker tag: $docker_tag "
6
6
7
7
if [ -n " $ACTION_PHPUNIT_PATH " ]
8
8
then
9
- echo " Using phar" >> output.log 2>&1
9
+ echo " output_log= Using phar"
10
10
phar_url=" https://phar.phpunit.de/phpunit"
11
11
if [ " $ACTION_VERSION " != " latest" ]
12
12
then
19
19
phar_path=" ${github_action_path} /phpunit.phar"
20
20
else
21
21
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 "
23
23
fi
24
24
25
25
command_string=(" phpunit" )
94
94
command_string+=($ACTION_ARGS )
95
95
fi
96
96
97
-
98
- echo " Command: " " ${command_string[@]} " >> output.log 2>&1
97
+ echo " output_log=Command: " " ${command_string[@]} "
99
98
100
99
docker run --rm \
101
100
--volume " ${phar_path} " :/usr/local/bin/phpunit \
You can’t perform that action at this time.
0 commit comments