Add code coverage to PHP 8.5 in ci-mysql.yml workflow. (#20661)

This commit is contained in:
Wilmer Arambula
2025-10-30 19:32:32 -03:00
committed by GitHub
parent a1a39e9f8b
commit dd664c5f45

View File

@@ -39,26 +39,28 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PHP_EXTENSIONS: curl, intl, pdo, pdo_mysql
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
PHPUNIT_GROUP: mysql
XDEBUG_MODE: coverage
jobs:
tests:
name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }}
env:
COVERAGE_DRIVER: ${{ matrix.php == 7.4 && 'xdebug' || 'none' }}
PHP_EXTENSIONS: curl, intl, pdo, pdo_mysql
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
PHPUNIT_GROUP: mysql
XDEBUG_MODE: coverage
COVERAGE_DRIVER: xdebug
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.5]
mysql: [5.7, latest]
services:
services: &mysql-service
mysql:
image: mysql:${{ matrix.mysql }}
env:
@@ -74,7 +76,7 @@ jobs:
--health-timeout=5s
--mount type=tmpfs,destination=/var/lib/mysql
steps:
steps: &mysql-steps
- name: Monitor action permissions.
if: runner.os != 'Windows'
uses: GitHubSecurityLab/actions-permissions/monitor@v1
@@ -96,3 +98,22 @@ jobs:
coverage-driver: ${{ env.COVERAGE_DRIVER }}
coverage-token: ${{ secrets.CODECOV_TOKEN }}
group: ${{ env.PHPUNIT_GROUP }}
tests-dev:
name: PHP ${{ matrix.php }}-mysql-${{ matrix.mysql }}
env:
COVERAGE_DRIVER: none
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2, 8.3, 8.4]
mysql:
- latest
services: *mysql-service
steps: *mysql-steps