Skip to content

Commit

Permalink
Merge pull request #5442 from derrabus/ci/php-8.2
Browse files Browse the repository at this point in the history
Run tests on PHP 8.2
  • Loading branch information
derrabus committed Jun 23, 2022
2 parents 9f79d46 + af52532 commit b178d60
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/continuous-integration.yml
Expand Up @@ -42,6 +42,7 @@ jobs:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
dependencies:
- "highest"
include:
Expand All @@ -68,6 +69,7 @@ jobs:
- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--ignore-platform-req=php+"
dependency-versions: "${{ matrix.dependencies }}"

- name: "Print SQLite version"
Expand All @@ -93,6 +95,7 @@ jobs:
php-version:
- "7.4"
- "8.1"
- "8.2"
oracle-version:
- "21"
include:
Expand Down Expand Up @@ -128,6 +131,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/oci8.xml --coverage-clover=coverage.xml"
Expand All @@ -148,6 +153,7 @@ jobs:
php-version:
- "7.4"
- "8.1"
- "8.2"
oracle-version:
- "21"
include:
Expand Down Expand Up @@ -183,6 +189,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_oci.xml --coverage-clover=coverage.xml"
Expand All @@ -209,6 +217,8 @@ jobs:
include:
- php-version: "8.1"
postgres-version: "14"
- php-version: "8.2"
postgres-version: "14"

services:
postgres:
Expand Down Expand Up @@ -237,6 +247,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"
Expand Down Expand Up @@ -277,6 +289,12 @@ jobs:
- php-version: "8.1"
mariadb-version: "10.7"
extension: "pdo_mysql"
- php-version: "8.2"
mariadb-version: "10.7"
extension: "mysqli"
- php-version: "8.2"
mariadb-version: "10.7"
extension: "pdo_mysql"

services:
mariadb:
Expand Down Expand Up @@ -307,6 +325,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"
Expand Down Expand Up @@ -365,6 +385,12 @@ jobs:
extension: "pdo_mysql"
custom-entrypoint: >-
--entrypoint sh mysql:8 -c "exec docker-entrypoint.sh mysqld --default-authentication-plugin=mysql_native_password"
- php-version: "8.2"
mysql-version: "8.0"
extension: "mysqli"
- php-version: "8.2"
mysql-version: "8.0"
extension: "pdo_mysql"

services:
mysql:
Expand Down Expand Up @@ -395,6 +421,8 @@ jobs:

- name: "Install dependencies with Composer"
uses: "ramsey/composer-install@v1"
with:
composer-options: "--ignore-platform-req=php+"

- name: "Copy TLS-related files"
run: 'docker cp "${{ job.services.mysql.id }}:/var/lib/mysql/ca.pem" . && docker cp "${{ job.services.mysql.id }}:/var/lib/mysql/client-cert.pem" . && docker cp "${{ job.services.mysql.id }}:/var/lib/mysql/client-key.pem" .'
Expand All @@ -420,6 +448,7 @@ jobs:
- "7.3"
- "7.4"
- "8.1"
- "8.2"
extension:
- "sqlsrv"
- "pdo_sqlsrv"
Expand Down Expand Up @@ -464,6 +493,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"
Expand Down

0 comments on commit b178d60

Please sign in to comment.