Update ci workflows to conditionally include xdebug for PHP 8.0 error segmentation-fault and change tools pecl for pie. (#20405)

This commit is contained in:
Wilmer Arambula
2025-06-10 12:29:19 -04:00
committed by GitHub
parent 066552f368
commit a3b4126781
7 changed files with 28 additions and 58 deletions

View File

@ -2,11 +2,6 @@ name: build
on: [push, pull_request] 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: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
@ -15,35 +10,18 @@ jobs:
phpunit: phpunit:
name: PHP ${{ matrix.php }} 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 runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
- 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
steps: steps:
- name: Generate french locale. - name: Generate french locale.
@ -55,11 +33,11 @@ jobs:
- name: Install PHP. - name: Install PHP.
uses: shivammathur/setup-php@v2 uses: shivammathur/setup-php@v2
with: with:
coverage: ${{ matrix.coverage }} coverage: ${{ matrix.php == '7.4' && 'xdebug' || 'none' }}
extensions: ${{ matrix.extensions }} extensions: ${{ env.EXTENSIONS }}
ini-values: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC', session.save_path="${{ runner.temp }}" 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 }} php-version: ${{ matrix.php }}
tools: pecl tools: pie
- name: Install Memcached. - name: Install Memcached.
uses: niden/actions-memcached@v7 uses: niden/actions-memcached@v7

View File

@ -11,8 +11,9 @@ concurrency:
jobs: jobs:
tests: tests:
name: PHP ${{ matrix.php }}-mariadb-${{ matrix.mariadb }} name: PHP ${{ matrix.php }}-mariadb-${{ matrix.mariadb }}
env: 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 XDEBUG_MODE: coverage, develop
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -20,7 +21,6 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest]
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]
mariadb: mariadb:
- mariadb:10.4 - mariadb:10.4
@ -47,7 +47,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Install dependencies with composer - name: Install dependencies with composer
if: matrix.php != '8.4' if: matrix.php != '8.4'

View File

@ -13,21 +13,15 @@ jobs:
name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql.version }} name: PHP ${{ matrix.php }}-mssql-${{ matrix.mssql.version }}
env: env:
EXTENSIONS: pdo, pdo_sqlsrv EXTENSIONS: pdo, pdo_sqlsrv, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }}
XDEBUG_MODE: coverage, develop XDEBUG_MODE: coverage, develop
runs-on: ${{ matrix.mssql.os || 'ubuntu-latest' }} runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php: php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
- 7.4
- 8.0
- 8.1
- 8.2
- 8.3
- 8.4
mssql: mssql:
- version: server:2022-latest - version: server:2022-latest
@ -67,7 +61,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Update composer - name: Update composer
run: composer self-update run: composer self-update

View File

@ -11,8 +11,9 @@ concurrency:
jobs: jobs:
tests: tests:
name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }} name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }}
env: 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 XDEBUG_MODE: coverage, develop
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -20,7 +21,6 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest]
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]
mysql: [5.7, latest] mysql: [5.7, latest]
@ -45,7 +45,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Install dependencies with composer - name: Install dependencies with composer
if: matrix.php != '8.4' if: matrix.php != '8.4'

View File

@ -13,14 +13,13 @@ jobs:
name: PHP ${{ matrix.php }}-${{ matrix.os }} name: PHP ${{ matrix.php }}-${{ matrix.os }}
env: env:
extensions: oci8, pdo, pdo_oci EXTENSIONS: oci8, pdo, pdo_oci, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }}
XDEBUG_MODE: coverage, develop XDEBUG_MODE: coverage, develop
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest]
php: [7.4] php: [7.4]
services: services:
@ -41,7 +40,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Update composer. - name: Update composer.
run: composer self-update run: composer self-update

View File

@ -11,8 +11,9 @@ concurrency:
jobs: jobs:
tests: tests:
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }} name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
env: 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 XDEBUG_MODE: coverage, develop
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -20,7 +21,6 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest]
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]
pgsql: [10, 11, 12, 13, 14, 15] pgsql: [10, 11, 12, 13, 14, 15]
@ -46,7 +46,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Update composer. - name: Update composer.
run: composer self-update run: composer self-update

View File

@ -13,7 +13,7 @@ jobs:
name: PHP ${{ matrix.php }}-sqlite name: PHP ${{ matrix.php }}-sqlite
env: env:
EXTENSIONS: pdo, pdo_sqlite, sqlite3 EXTENSIONS: pdo, pdo_sqlite, sqlite3, ${{ matrix.php == '8.0' && 'xdebug-3.3.2' || 'xdebug' }}
XDEBUG_MODE: coverage, develop XDEBUG_MODE: coverage, develop
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -21,7 +21,6 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [ubuntu-latest]
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]
steps: steps:
@ -35,7 +34,7 @@ jobs:
extensions: ${{ env.EXTENSIONS }} extensions: ${{ env.EXTENSIONS }}
ini-values: date.timezone='UTC' ini-values: date.timezone='UTC'
php-version: ${{ matrix.php }} php-version: ${{ matrix.php }}
tools: composer:v2, pecl tools: pie
- name: Update composer. - name: Update composer.
run: composer self-update run: composer self-update