@@ -155,28 +155,28 @@ jobs:
155
155
run : echo ${{ steps.phpunit_version.outputs.VERSION }}
156
156
157
157
- name : " Run the unit tests (PHPUnit < 10)"
158
- if : ${{ matrix.coverage == false && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
158
+ if : ${{ matrix.coverage == false && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) && matrix.phpunit != 'dev-main' }}
159
159
run : composer test
160
160
161
161
- name : " Run the unit tests with code coverage (PHPUnit < 10)"
162
- if : ${{ matrix.coverage == true && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}
162
+ if : ${{ matrix.coverage == true && ! startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) && matrix.phpunit != 'dev-main' }}
163
163
run : composer coverage
164
164
165
165
# Migrate PHPUnit configuration to deal with changes in the coverage/source setting across PHPUnit 10.x
166
166
# versions as otherwise the warning about these would fail the build (which to me, feels like a bug).
167
167
- name : " Migrate configuration (PHPUnit 10.0+)"
168
168
continue-on-error : true
169
- if : ${{ startsWith( steps.phpunit_version.outputs.VERSION, '10. ' ) && steps.phpunit_version.outputs.VERSION != '10.0' }}
169
+ if : ${{ startsWith( steps.phpunit_version.outputs.VERSION, '1 ' ) && steps.phpunit_version.outputs.VERSION != '10.0' }}
170
170
run : vendor/bin/phpunit -c phpunit10.xml.dist --migrate-configuration
171
171
172
172
- name : " Run the unit tests (PHPUnit 10.0+)"
173
- if : ${{ matrix.coverage == false && startsWith( steps.phpunit_version.outputs.VERSION, '10. ' ) }}
173
+ if : ${{ matrix.coverage == false && startsWith( steps.phpunit_version.outputs.VERSION, '1 ' ) }}
174
174
# Don't fail the build on a test run failure against a future PHPUnit version.
175
175
continue-on-error : ${{ matrix.phpunit == 'dev-main' }}
176
176
run : composer test10 -- ${{ steps.phpunit_version.outputs.VERSION != '10.0' && env.EXTRA_PHPUNIT_CLIARGS || '' }}
177
177
178
178
- name : " Run the unit tests with code coverage (PHPUnit 10.0+)"
179
- if : ${{ matrix.coverage == true && startsWith( steps.phpunit_version.outputs.VERSION, '10. ' ) }}
179
+ if : ${{ matrix.coverage == true && startsWith( steps.phpunit_version.outputs.VERSION, '1 ' ) }}
180
180
# Don't fail the build on a test run failure against a future PHPUnit version.
181
181
continue-on-error : ${{ matrix.phpunit == 'dev-main' }}
182
182
run : composer coverage10 -- ${{ steps.phpunit_version.outputs.VERSION != '10.0' && env.EXTRA_PHPUNIT_CLIARGS || '' }}
0 commit comments