@@ -246,23 +246,16 @@ jobs:
246246 with :
247247 coverage : " pcov"
248248 php-version : " ${{ matrix.php-version }}"
249- tools : pecl, infection:0.31.7
250- extensions : ds,mbstring
251249 ini-file : development
252- ini-values : memory_limit=-1
250+ extensions : ds,mbstring
251+ tools : infection:0.31.7
253252
254- - uses : " ramsey/composer-install@v3"
253+ - name : " Allow installing on PHP 8.4"
254+ if : matrix.php-version == '8.4'
255+ run : " composer config platform.php 8.3.99"
255256
256- - name : " Cache Result cache"
257- uses : actions/cache@v4
258- with :
259- path : ./tmp
260- key : " result-cache-v14-${{ matrix.php-version }}-${{ github.run_id }}"
261- restore-keys : |
262- result-cache-v14-${{ matrix.php-version }}-
263-
264- - name : " Check PHP configuration"
265- run : " vendor/bin/phpunit --check-php-configuration"
257+ - name : " Install dependencies"
258+ run : " composer install --no-interaction --no-progress"
266259
267260 - name : " Checkout build-infection"
268261 uses : actions/checkout@v5
@@ -275,6 +268,20 @@ jobs:
275268 working-directory : " build-infection"
276269 run : " composer install --no-interaction --no-progress"
277270
271+ - name : " Configure infection"
272+ run : |
273+ php build-infection/bin/infection-config.php \
274+ > infection.json5
275+ cat infection.json5 | jq
276+
277+ - name : " Cache Result cache"
278+ uses : actions/cache@v4
279+ with :
280+ path : ./tmp
281+ key : " result-cache-v1-${{ matrix.php-version }}-${{ github.run_id }}"
282+ restore-keys : |
283+ result-cache-v1-${{ matrix.php-version }}-
284+
278285 - name : " Run infection"
279286 run : |
280287 git fetch --depth=1 origin $GITHUB_BASE_REF
0 commit comments