From 47bed38581d77a70807cbf3b05aa71980fc9b1e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Sun, 24 Nov 2024 11:26:08 +0100 Subject: [PATCH] Rework the continuous integration jobs (#6613) This is an attempt at implementing https://github.com/doctrine/dbal/pull/3347#issuecomment-439231396 - For the latest stable PHP version (which is currently 8.3), test all drivers with all platform versions. - All other supported PHP versions (7.4, 8.2, nightly), test each driver with the latest version of the platform. This results in a slight reduction of the number of jobs (from 92 to 85) --- .github/workflows/continuous-integration.yml | 89 ++++++++------------ 1 file changed, 36 insertions(+), 53 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 27b1ad3d6e..f57bba9304 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -38,9 +38,6 @@ jobs: - "ubuntu-22.04" php-version: - "7.4" - - "8.0" - - "8.1" - - "8.2" - "8.3" - "8.4" dependencies: @@ -107,17 +104,17 @@ jobs: strategy: matrix: php-version: - - "7.4" - - "8.2" - "8.3" oracle-version: - "21" - "23" include: + - php-version: "7.4" + oracle-version: "23" + - php-version: "8.2" + oracle-version: "23" - php-version: "8.4" oracle-version: "23" - - php-version: "7.4" - oracle-version: "11" services: oracle: @@ -168,17 +165,17 @@ jobs: strategy: matrix: php-version: - - "7.4" - - "8.2" - "8.3" oracle-version: - "21" - "23" include: + - php-version: "7.4" + oracle-version: "23" + - php-version: "8.2" + oracle-version: "23" - php-version: "8.4" oracle-version: "23" - - php-version: "7.4" - oracle-version: "11" services: oracle: @@ -229,28 +226,28 @@ jobs: strategy: matrix: php-version: - - "7.4" + - "8.3" postgres-version: - "9.4" - - "16" + - "11" # We have code specific to 10.0-12.0 - "17" extension: - "pgsql" - "pdo_pgsql" include: - - php-version: "8.2" + - php-version: "7.4" postgres-version: "17" extension: "pgsql" - - php-version: "8.3" + - php-version: "8.2" postgres-version: "17" extension: "pgsql" - php-version: "8.4" postgres-version: "17" extension: "pgsql" - - php-version: "8.2" + - php-version: "7.4" postgres-version: "17" extension: "pdo_pgsql" - - php-version: "8.3" + - php-version: "8.2" postgres-version: "17" extension: "pdo_pgsql" - php-version: "8.4" @@ -305,43 +302,34 @@ jobs: strategy: matrix: php-version: - - "7.4" + - "8.3" mariadb-version: # keep in sync with https://mariadb.org/about/#maintenance-policy - "10.0" # Oldest version supported by DBAL - - "10.4" # LTS (Jun 2024) - - "10.5" # LTS (Jun 2025) - - "10.6" # LTS (Jul 2026) - - "10.11" # LTS (Feb 2028) - - "11.1" # STS (Aug 2024) - - "11.2" # STS (Nov 2024) - - "11.3" # STS (Feb 2025) + - "10.4" # LTS (Jun 2024) We have code specific to 10.4.3-10.5.2 + - "10.5" # LTS (Jun 2025) We have code specific to 10.5.2-10.6.0 + - "10.6" # LTS (Jul 2026) We have code specific to 10.6.0-10.10.0 + - "10.11" # LTS (Feb 2028) We have code specific to ^10.10 - "11.4" # LTS (May 2029) extension: - "mysqli" - "pdo_mysql" include: - - php-version: "8.2" - mariadb-version: "10.6" - extension: "mysqli" - - php-version: "8.2" - mariadb-version: "10.6" - extension: "pdo_mysql" - - php-version: "8.2" + - php-version: "7.4" mariadb-version: "11.4" extension: "mysqli" - php-version: "8.2" mariadb-version: "11.4" - extension: "pdo_mysql" - - php-version: "8.3" + extension: "mysqli" + - php-version: "8.4" mariadb-version: "11.4" extension: "mysqli" - - php-version: "8.3" + - php-version: "7.4" mariadb-version: "11.4" extension: "pdo_mysql" - - php-version: "8.4" + - php-version: "8.2" mariadb-version: "11.4" - extension: "mysqli" + extension: "pdo_mysql" - php-version: "8.4" mariadb-version: "11.4" extension: "pdo_mysql" @@ -398,7 +386,7 @@ jobs: - "8.3" mysql-version: - "5.7" - - "8.0" + - "8.0" # We have code specific to ^8.0 - "9.1" extension: - "mysqli" @@ -408,28 +396,23 @@ jobs: include: - config-file-suffix: "-tls" php-version: "7.4" - mysql-version: "8.0" + mysql-version: "9.1" extension: "mysqli" - php-version: "7.4" - mysql-version: "8.0" + mysql-version: "9.1" extension: "mysqli" - - php-version: "7.4" - mysql-version: "8.0" - extension: "pdo_mysql" - # Workaround for https://bugs.mysql.com/114876 - - php-version: "8.3" - mysql-version: "8.4" + - php-version: "8.2" + mysql-version: "9.1" extension: "mysqli" - custom-entrypoint: >- - --entrypoint sh mysql:8.4 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON" - - php-version: "8.3" - mysql-version: "8.4" - extension: "pdo_mysql" - custom-entrypoint: >- - --entrypoint sh mysql:8.4 -c "exec docker-entrypoint.sh mysqld --mysql-native-password=ON" - php-version: "8.4" mysql-version: "9.1" extension: "mysqli" + - php-version: "7.4" + mysql-version: "9.1" + extension: "pdo_mysql" + - php-version: "8.2" + mysql-version: "9.1" + extension: "pdo_mysql" - php-version: "8.4" mysql-version: "9.1" extension: "pdo_mysql"