Skip to content

Commit 727a68a

Browse files
authored
Merge pull request #1191 from PHPCSStandards/feature/ghactions-fix-testing-against-php-8.5
GH Actions: apply work-around for testing against PHP 8.5
2 parents d7a7cca + ac0d22e commit 727a68a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
- name: Install PHP
200200
uses: shivammathur/setup-php@v2
201201
with:
202-
php-version: ${{ matrix.php }}
202+
php-version: ${{ matrix.php == '8.5' && '8.4' || matrix.php }}
203203
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
204204
coverage: none
205205

@@ -229,6 +229,14 @@ jobs:
229229
composer-options: ${{ matrix.php == '8.5' && '--ignore-platform-req=php+' || '' }}
230230
custom-cache-suffix: $(date -u "+%Y-%m")
231231

232+
- name: "Install PHP again (PHP 8.5)"
233+
if: ${{ matrix.php == '8.5' }}
234+
uses: shivammathur/setup-php@v2
235+
with:
236+
php-version: ${{ matrix.php }}
237+
ini-values: ${{ steps.set_ini.outputs.PHP_INI }}
238+
coverage: none
239+
232240
- name: 'PHPCS: set the path to PHP'
233241
run: php "bin/phpcs" --config-set php_path php
234242

0 commit comments

Comments
 (0)