diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f623bff52..d2b713bf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: strategy: fail-fast: false matrix: - php-version: ['8.1', '8.2', '8.3'] + php-version: ['8.1', '8.4'] db-type: [sqlite, mysql, pgsql] prefer-lowest: [''] include: - - php-version: '8.3' - db-type: sqlite + - php-version: '8.2' + db-type: mysql prefer-lowest: '' - php-version: '8.1' db-type: sqlite @@ -27,7 +27,7 @@ jobs: steps: - name: Setup MySQL latest - if: matrix.db-type == 'mysql' && matrix.php-version == '8.3' + if: matrix.db-type == 'mysql' && matrix.php-version == '8.4' run: docker run --rm --name=mysqld -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=cakephp -p 3306:3306 -d mysql:8.4 - name: Setup MySQL 8.0 @@ -101,7 +101,7 @@ jobs: if [[ ${{ matrix.db-type }} == 'mysql' ]]; then export MYSQL_DSN='mysql://root:root@127.0.0.1/phinx'; fi if [[ ${{ matrix.db-type }} == 'pgsql' ]]; then export PGSQL_DSN='pgsql://postgres:postgres@127.0.0.1/phinx'; fi - if [[ ${{ matrix.php-version }} == '8.2' ]]; then + if [[ ${{ matrix.prefer-lowest != 'prefer-lowest' }} ]]; then export CODECOVERAGE=1 && vendor/bin/phpunit --verbose --coverage-clover=coverage.xml else vendor/bin/phpunit @@ -112,7 +112,7 @@ jobs: run: composer require --dev dereuromark/composer-prefer-lowest && vendor/bin/validate-prefer-lowest -m - name: Submit code coverage - if: matrix.php-version == '8.2' + if: ${{ matrix.prefer-lowest != 'prefer-lowest' }} uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }}