File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -167,13 +167,15 @@ jobs:
167
167
168
168
- name : Grab PHPUnit version
169
169
id : phpunit_version
170
- run : echo "VERSION=$(vendor/bin/phpunit --version | grep --only-matching --max-count=1 --extended-regexp '\b[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
170
+ run : |
171
+ VER_STR=$(vendor/bin/phpunit --version)
172
+ echo "VERSION=$(echo $VER_STR | grep --only-matching --max-count=1 --extended-regexp '[0-9]+\.[0-9]+')" >> $GITHUB_OUTPUT
171
173
172
174
- name : " Run unit tests (PHPUnit < 10)"
173
175
if : ${{ ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
174
176
run : composer test
175
177
176
- - name : " Run unit tests (PHPUnit < 10)"
178
+ - name : " Run unit tests (PHPUnit >= 10)"
177
179
if : ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
178
180
run : composer test10
179
181
You can’t perform that action at this time.
0 commit comments