From a3b412678177df173601b08ef623606241165ba5 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Tue, 10 Jun 2025 12:29:19 -0400 Subject: [PATCH] Update `ci` workflows to conditionally include `xdebug` for `PHP 8.0` error `segmentation-fault` and change tools `pecl` for `pie`. (#20405) --- .github/workflows/build.yml | 42 ++++++++------------------------ .github/workflows/ci-mariadb.yml | 6 ++--- .github/workflows/ci-mssql.yml | 14 +++-------- .github/workflows/ci-mysql.yml | 6 ++--- .github/workflows/ci-oracle.yml | 7 +++--- .github/workflows/ci-pgsql.yml | 6 ++--- .github/workflows/ci-sqlite.yml | 5 ++-- 7 files changed, 28 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1682f76006..f1b9b0b61a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,11 +2,6 @@ name: build on: [push, pull_request] -env: - DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" - PHPUNIT_EXCLUDE_GROUP: db,wincache,xcache,zenddata - XDEBUG_MODE: coverage, develop - concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -15,35 +10,18 @@ jobs: phpunit: name: PHP ${{ matrix.php }} + env: + DEFAULT_COMPOSER_FLAGS: "--prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi" + EXTENSIONS: ${{ matrix.php < 8.0 && 'apc' || 'apcu' }}, curl, dom, imagick, intl, mbstring, mcrypt, memcached + PHPUNIT_EXCLUDE_GROUP: db,wincache,xcache,zenddata + XDEBUG_MODE: coverage, develop + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - include: - - php: 7.3 - extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - - php: 7.4 - extensions: apc, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: xdebug - - php: 8.0 - extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - - php: 8.1 - extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - - php: 8.2 - extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - - php: 8.3 - extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - os: ubuntu-latest - - php: 8.4 - extensions: apcu, curl, dom, imagick, intl, mbstring, mcrypt, memcached - coverage: none - os: ubuntu-latest + php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] steps: - name: Generate french locale. @@ -55,11 +33,11 @@ jobs: - name: Install PHP. uses: shivammathur/setup-php@v2 with: - coverage: ${{ matrix.coverage }} - extensions: ${{ matrix.extensions }} + coverage: ${{ matrix.php == '7.4' && 'xdebug' || 'none' }} + extensions: ${{ env.EXTENSIONS }} ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}" php-version: ${{ matrix.php }} - tools: pecl + tools: pie - name: Install Memcached. uses: niden/actions-memcached@v7 diff --git a/.github/workflows/ci-mariadb.yml b/.github/workflows/ci-mariadb.yml index a2d8e4d0f5..a5eaf37a23 100644 --- a/.github/workflows/ci-mariadb.yml +++ b/.github/workflows/ci-mariadb.yml @@ -11,8 +11,9 @@ concurrency: jobs: tests: name: PHP ${{ matrix.php }}-mariadb-${{ matrix.mariadb }} + env: - extensions: curl, intl, pdo, pdo_mysql + EXTENSIONS: curl, intl, pdo, pdo_mysql, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop runs-on: ubuntu-latest @@ -20,7 +21,6 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] mariadb: - mariadb:10.4 @@ -47,7 +47,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Install dependencies with composer if: matrix.php != '8.4' diff --git a/.github/workflows/ci-mssql.yml b/.github/workflows/ci-mssql.yml index 40e19b8c86..2bf63ed435 100644 --- a/.github/workflows/ci-mssql.yml +++ b/.github/workflows/ci-mssql.yml @@ -13,21 +13,15 @@ jobs: name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql.version }} env: - EXTENSIONS: pdo, pdo_sqlsrv + EXTENSIONS: pdo, pdo_sqlsrv, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop - runs-on: ${{ matrix.mssql.os || 'ubuntu-latest' }} + runs-on: ubuntu-latest strategy: fail-fast: false matrix: - php: - - 7.4 - - 8.0 - - 8.1 - - 8.2 - - 8.3 - - 8.4 + php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] mssql: - version: server:2022-latest @@ -67,7 +61,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Update composer run: composer self-update diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index 37e04b1da2..bf6b3202f5 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -11,8 +11,9 @@ concurrency: jobs: tests: name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }} + env: - extensions: curl, intl, pdo, pdo_mysql + EXTENSIONS: curl, intl, pdo, pdo_mysql, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop runs-on: ubuntu-latest @@ -20,7 +21,6 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] mysql: [5.7, latest] @@ -45,7 +45,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Install dependencies with composer if: matrix.php != '8.4' diff --git a/.github/workflows/ci-oracle.yml b/.github/workflows/ci-oracle.yml index c18f9c15b6..dab182ec05 100644 --- a/.github/workflows/ci-oracle.yml +++ b/.github/workflows/ci-oracle.yml @@ -13,14 +13,13 @@ jobs: name: PHP ${{ matrix.php }}-${{ matrix.os }} env: - extensions: oci8, pdo, pdo_oci + EXTENSIONS: oci8, pdo, pdo_oci, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: matrix: - os: [ubuntu-latest] php: [7.4] services: @@ -41,7 +40,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Update composer. run: composer self-update diff --git a/.github/workflows/ci-pgsql.yml b/.github/workflows/ci-pgsql.yml index cd14889211..bd4908b4bc 100644 --- a/.github/workflows/ci-pgsql.yml +++ b/.github/workflows/ci-pgsql.yml @@ -11,8 +11,9 @@ concurrency: jobs: tests: name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }} + env: - extensions: curl, intl, pdo, pdo_pgsql + EXTENSIONS: curl, intl, pdo, pdo_pgsql, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop runs-on: ubuntu-latest @@ -20,7 +21,6 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] pgsql: [10, 11, 12, 13, 14, 15] @@ -46,7 +46,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Update composer. run: composer self-update diff --git a/.github/workflows/ci-sqlite.yml b/.github/workflows/ci-sqlite.yml index fb1fc41946..735d455f75 100644 --- a/.github/workflows/ci-sqlite.yml +++ b/.github/workflows/ci-sqlite.yml @@ -13,7 +13,7 @@ jobs: name: PHP ${{ matrix.php }}-sqlite env: - EXTENSIONS: pdo, pdo_sqlite, sqlite3 + EXTENSIONS: pdo, pdo_sqlite, sqlite3, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }} XDEBUG_MODE: coverage, develop runs-on: ubuntu-latest @@ -21,7 +21,6 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest] php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4] steps: @@ -35,7 +34,7 @@ jobs: extensions: ${{ env.EXTENSIONS }} ini-values: date.timezone='UTC' php-version: ${{ matrix.php }} - tools: composer:v2, pecl + tools: pie - name: Update composer. run: composer self-update