Skip to content

Commit ea19c13

Browse files
committed
Update test.yml
1 parent 2b3c305 commit ea19c13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,15 @@ jobs:
167167

168168
- name: Grab PHPUnit version
169169
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
171173
172174
- name: "Run unit tests (PHPUnit < 10)"
173175
if: ${{ ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
174176
run: composer test
175177

176-
- name: "Run unit tests (PHPUnit < 10)"
178+
- name: "Run unit tests (PHPUnit >= 10)"
177179
if: ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
178180
run: composer test10
179181

0 commit comments

Comments
 (0)