From b27121fb4d6b3a54f7b2881b40e189bba397ce79 Mon Sep 17 00:00:00 2001 From: Martin Georgiev Date: Thu, 13 Mar 2025 19:28:19 +0000 Subject: [PATCH] ci: fix test matrix to cover all PHP and Doctrine ORM combinations The CI workflow now correctly tests all combinations of: - PHP versions (8.1, 8.2, 8.3, 8.4) - Doctrine ORM versions (2.14, 3.0, latest) This creates 12 test combinations instead of separate jobs for PHP and Doctrine. Code coverage reporting remains exclusive to PHP 8.4 builds. --- .github/workflows/ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98f28b08..da6376f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,15 +17,11 @@ jobs: strategy: fail-fast: false matrix: + php: ['8.1', '8.2', '8.3', '8.4'] + doctrine-orm: ['2.14', '3.0', 'latest'] include: - - php: '8.1' - - php: '8.2' - - php: '8.3' - php: '8.4' calculate-code-coverage: true - - doctrine-orm: '2.14' - - doctrine-orm: '3.0' - - doctrine-orm: 'latest' steps: - uses: actions/checkout@v4 @@ -33,7 +29,7 @@ jobs: - name: Set up PHP with PECL extension uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php || '8.4' }} + php-version: ${{ matrix.php }} coverage: xdebug extensions: ctype, json, mbstring tools: composer