mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 02:11:40 +08:00
Add code coverage to PHP 8.5 in ci-pgsql.yml workflow. (#20664)
This commit is contained in:
39
.github/workflows/ci-pgsql.yml
vendored
39
.github/workflows/ci-pgsql.yml
vendored
@@ -39,26 +39,28 @@ concurrency:
|
|||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
env:
|
||||||
|
PHP_EXTENSIONS: curl, intl, pdo, pdo_pgsql
|
||||||
|
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
|
||||||
|
PHPUNIT_GROUP: pgsql
|
||||||
|
XDEBUG_MODE: coverage
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
|
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COVERAGE_DRIVER: ${{ matrix.php == 7.4 && 'xdebug' || 'none' }}
|
COVERAGE_DRIVER: xdebug
|
||||||
PHP_EXTENSIONS: curl, intl, pdo, pdo_pgsql
|
|
||||||
PHP_INI_VALUES: apc.enabled=1,apc.shm_size=32M,apc.enable_cli=1, date.timezone='UTC'
|
|
||||||
PHPUNIT_GROUP: pgsql
|
|
||||||
XDEBUG_MODE: coverage
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
php: [7.4, 8.0, 8.1, 8.2, 8.3, 8.4]
|
php: [7.4, 8.5]
|
||||||
pgsql: [10, 11, 12, 13, 14, 15]
|
pgsql: [10, 11, 12, 13, 14, 15, 16, 17]
|
||||||
|
|
||||||
services:
|
services: &pgsql-service
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:${{ matrix.pgsql }}
|
image: postgres:${{ matrix.pgsql }}
|
||||||
env:
|
env:
|
||||||
@@ -75,7 +77,7 @@ jobs:
|
|||||||
--health-timeout=5s
|
--health-timeout=5s
|
||||||
--mount type=tmpfs,destination=/var/lib/postgresql/data
|
--mount type=tmpfs,destination=/var/lib/postgresql/data
|
||||||
|
|
||||||
steps:
|
steps: &pgsql-steps
|
||||||
- name: Monitor action permissions.
|
- name: Monitor action permissions.
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
uses: GitHubSecurityLab/actions-permissions/monitor@v1
|
uses: GitHubSecurityLab/actions-permissions/monitor@v1
|
||||||
@@ -97,3 +99,22 @@ jobs:
|
|||||||
coverage-driver: ${{ env.COVERAGE_DRIVER }}
|
coverage-driver: ${{ env.COVERAGE_DRIVER }}
|
||||||
coverage-token: ${{ secrets.CODECOV_TOKEN }}
|
coverage-token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
group: ${{ env.PHPUNIT_GROUP }}
|
group: ${{ env.PHPUNIT_GROUP }}
|
||||||
|
|
||||||
|
tests-dev:
|
||||||
|
name: PHP ${{ matrix.php }}-pgsql-${{ matrix.pgsql }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
COVERAGE_DRIVER: none
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
php: [8.0, 8.1, 8.2, 8.3, 8.4]
|
||||||
|
pgsql:
|
||||||
|
- 17
|
||||||
|
|
||||||
|
services: *pgsql-service
|
||||||
|
|
||||||
|
steps: *pgsql-steps
|
||||||
|
|||||||
Reference in New Issue
Block a user