Skip to content

Commit 9b010d7

Browse files
authored
Merge pull request #177 from antecedent/feature/ghactions-fix-testing-against-php-8.5
GH Actions: apply work-around for testing against PHP 8.5
2 parents 724f03c + 1fe0982 commit 9b010d7

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup PHP
2929
uses: shivammathur/setup-php@v2
3030
with:
31-
php-version: ${{ matrix.php-versions }}
31+
php-version: ${{ matrix.php-versions == '8.5' && '8.4' || matrix.php-versions }}
3232
extensions: mbstring
3333
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
3434
coverage: none
@@ -49,5 +49,14 @@ jobs:
4949
composer-options: --ignore-platform-reqs
5050
custom-cache-suffix: $(date -u "+%Y-%m")
5151

52+
- name: "Setup PHP again (PHP 8.5)"
53+
if: ${{ matrix.php-versions == '8.5' }}
54+
uses: shivammathur/setup-php@v2
55+
with:
56+
php-version: ${{ matrix.php-versions }}
57+
extensions: mbstring
58+
ini-values: zend.assertions=1, error_reporting=-1, display_errors=On, display_startup_errors=On, log_errors_max_len=0
59+
coverage: none
60+
5261
- name: Run tests
5362
run: vendor/bin/phpunit tests

0 commit comments

Comments
 (0)