File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,7 @@ jobs:
333333 elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '10.' ) }}" == "true" ]; then
334334 echo 'FILE=phpunit.xml.dist' >> "$GITHUB_OUTPUT"
335335 echo 'WARM_CACHE=true' >> "$GITHUB_OUTPUT"
336- elif [ "${{ startsWith( steps.phpunit_version.outputs.VERSION, '9.5' ) }}" == "true" ]; then
336+ elif [ "${{ steps.phpunit_version.outputs.VERSION >= '9.3' }}" == "true" ]; then
337337 echo 'FILE=phpunit-lte9.xml.dist' >> "$GITHUB_OUTPUT"
338338 echo 'WARM_CACHE=true' >> "$GITHUB_OUTPUT"
339339 else
@@ -351,8 +351,8 @@ jobs:
351351 - name : " Warm the PHPUnit cache (PHPUnit 9.3+)"
352352 if : ${{ steps.phpunit_config.outputs.WARM_CACHE == 'true' }}
353353 run : >
354- php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }}
355- --coverage-cache ./build/phpunit-cache --warm-coverage-cache
354+ php "vendor/bin/phpunit" -c ${{ steps.phpunit_config.outputs.FILE }} --warm-coverage-cache
355+ ${{ steps.phpunit_version.outputs.VERSION >= '9.3' && ' --coverage-cache ./build/phpunit-cache' || '' }}
356356
357357 - name : " Run the unit tests with code coverage"
358358 if : ${{ matrix.os != 'windows-latest' }}
You can’t perform that action at this time.
0 commit comments