From dd664c5f45003f84223a46dc99161c15509936a5 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Thu, 30 Oct 2025 19:32:32 -0300 Subject: [PATCH] Add code coverage to PHP `8.5` in `ci-mysql.yml` workflow. (#20661) --- .github/workflows/ci-mysql.yml | 37 ++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index 03b213b181..ac595b54a2 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -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