-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run tests on PHP 8.2 #9840
Run tests on PHP 8.2 #9840
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ jobs: | |
dbal-version: "2.13" | ||
- php-version: "8.1" | ||
dbal-version: "3@dev" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
|
||
steps: | ||
- name: "Checkout" | ||
|
@@ -52,6 +54,8 @@ jobs: | |
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
composer-options: "--ignore-platform-req=php+" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to ignore the upper boundary of PHP version constraints. Otherwise, we cannot install Prophecy (as a dependency of PHPUnit) on PHP 8.2. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Didn't know about that |
||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit -c ci/github/phpunit/sqlite.xml --coverage-clover=coverage-no-cache.xml" | ||
|
@@ -88,6 +92,9 @@ jobs: | |
- php-version: "8.0" | ||
dbal-version: "2.13" | ||
postgres-version: "14" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
postgres-version: "14" | ||
|
||
services: | ||
postgres: | ||
|
@@ -120,6 +127,8 @@ jobs: | |
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
composer-options: "--ignore-platform-req=php+" | ||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit -c ci/github/phpunit/pdo_pgsql.xml --coverage-clover=coverage.xml" | ||
|
@@ -152,6 +161,14 @@ jobs: | |
dbal-version: "2.13" | ||
mariadb-version: "10.6" | ||
extension: "pdo_mysql" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
mariadb-version: "10.6" | ||
extension: "pdo_mysql" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
mariadb-version: "10.6" | ||
extension: "mysqli" | ||
|
||
services: | ||
mariadb: | ||
|
@@ -186,6 +203,8 @@ jobs: | |
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
composer-options: "--ignore-platform-req=php+" | ||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage.xml" | ||
|
@@ -219,6 +238,14 @@ jobs: | |
dbal-version: "2.13" | ||
mysql-version: "8.0" | ||
extension: "pdo_mysql" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
mysql-version: "8.0" | ||
extension: "mysqli" | ||
- php-version: "8.2" | ||
dbal-version: "3@dev" | ||
mysql-version: "8.0" | ||
extension: "pdo_mysql" | ||
|
||
services: | ||
mysql: | ||
|
@@ -252,6 +279,8 @@ jobs: | |
|
||
- name: "Install dependencies with Composer" | ||
uses: "ramsey/composer-install@v1" | ||
with: | ||
composer-options: "--ignore-platform-req=php+" | ||
|
||
- name: "Run PHPUnit" | ||
run: "vendor/bin/phpunit -c ci/github/phpunit/${{ matrix.extension }}.xml --coverage-clover=coverage-no-cache.xml" | ||
|
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as doctrine/dbal#5381 is not released, the tests will fail on PHP 8.2 if we don't test against a dev snapshot.