Skip to content

Commit f60f559

Browse files
authored
cover php 8.2 in CI (#426)
* cover php 8.2 in CI * Update tests.yml * typo * Restore phpstan.yml
1 parent 96921e7 commit f60f559

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ jobs:
4242
reflector: "mysqli"
4343
mode: "recording"
4444

45+
- php-version: "8.2"
46+
db-image: 'mysql:8.0'
47+
reflector: "mysqli"
48+
mode: "recording"
49+
- php-version: '8.2'
50+
db-image: 'mariadb:latest'
51+
reflector: "mysqli"
52+
mode: "recording"
53+
4554
- php-version: "8.1"
4655
db-image: 'mysql:8.0'
4756
reflector: "pdo-mysql"
@@ -75,7 +84,8 @@ jobs:
7584

7685
- uses: "ramsey/composer-install@v2"
7786
with:
78-
composer-options: "--prefer-dist --no-progress"
87+
# ignore php8.2 requirement error https://github.com/sebastianbergmann/phpunit/issues/5033
88+
composer-options: "--prefer-dist --no-progress --ignore-platform-req=php+"
7989

8090
- name: Setup Problem Matchers for PHPUnit
8191
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
@@ -122,7 +132,8 @@ jobs:
122132

123133
- uses: "ramsey/composer-install@v2"
124134
with:
125-
composer-options: "--prefer-dist --no-progress"
135+
# ignore php8.2 requirement error https://github.com/sebastianbergmann/phpunit/issues/5033
136+
composer-options: "--prefer-dist --no-progress --ignore-platform-req=php+"
126137

127138
- name: Setup Problem Matchers for PHPUnit
128139
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

0 commit comments

Comments
 (0)