diff --git a/.github/workflows/phpunit-mariadb.yml b/.github/workflows/phpunit-mariadb.yml index e128f9916a3b8..523ba26fbda5f 100644 --- a/.github/workflows/phpunit-mariadb.yml +++ b/.github/workflows/phpunit-mariadb.yml @@ -57,7 +57,7 @@ jobs: include: - php-versions: '8.3' mariadb-versions: '10.6' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: MariaDB ${{ matrix.mariadb-versions }} (PHP ${{ matrix.php-versions }}) - database tests diff --git a/.github/workflows/phpunit-memcached.yml b/.github/workflows/phpunit-memcached.yml index cafa936e2d8b9..04be6b01c1244 100644 --- a/.github/workflows/phpunit-memcached.yml +++ b/.github/workflows/phpunit-memcached.yml @@ -55,7 +55,7 @@ jobs: php-versions: ['8.0', '8.1', '8.2', '8.3'] include: - php-versions: '8.2' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: Memcached (PHP ${{ matrix.php-versions }}) diff --git a/.github/workflows/phpunit-mysql.yml b/.github/workflows/phpunit-mysql.yml index c8ee4a74b7b2d..66a1184437a53 100644 --- a/.github/workflows/phpunit-mysql.yml +++ b/.github/workflows/phpunit-mysql.yml @@ -57,7 +57,7 @@ jobs: include: - mysql-versions: '8.1' php-versions: '8.3' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: MySQL ${{ matrix.mysql-versions }} (PHP ${{ matrix.php-versions }}) - database tests diff --git a/.github/workflows/phpunit-nodb.yml b/.github/workflows/phpunit-nodb.yml index 01ffa101fb051..f35c57e78c12f 100644 --- a/.github/workflows/phpunit-nodb.yml +++ b/.github/workflows/phpunit-nodb.yml @@ -56,7 +56,7 @@ jobs: php-versions: ['8.0', '8.1', '8.2', '8.3'] include: - php-versions: '8.2' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: No DB unit tests (PHP ${{ matrix.php-versions }}) diff --git a/.github/workflows/phpunit-oci.yml b/.github/workflows/phpunit-oci.yml index 3f90743d5d0e2..bb7da893cab61 100644 --- a/.github/workflows/phpunit-oci.yml +++ b/.github/workflows/phpunit-oci.yml @@ -50,7 +50,7 @@ jobs: php-versions: ['8.0', '8.1', '8.2', '8.3'] include: - php-versions: '8.3' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: Oracle ${{ matrix.oracle-versions }} (PHP ${{ matrix.php-versions }}) - database tests diff --git a/.github/workflows/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml index 3c875cd186916..f5512aa33d730 100644 --- a/.github/workflows/phpunit-pgsql.yml +++ b/.github/workflows/phpunit-pgsql.yml @@ -58,7 +58,7 @@ jobs: include: - php-versions: '8.3' postgres-versions: '15' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: PostgreSQL ${{ matrix.postgres-versions }} (PHP ${{ matrix.php-versions }}) - database tests @@ -111,7 +111,7 @@ jobs: - name: PHPUnit database tests run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml' || '' }} - + - name: Upload db code coverage if: ${{ !cancelled() && matrix.coverage }} uses: codecov/codecov-action@v3 diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index 67338888f8d43..38ac2bca54455 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -55,7 +55,7 @@ jobs: php-versions: ['8.0', '8.1', '8.2', '8.3'] include: - php-versions: '8.1' - coverage: true + coverage: ${{ github.event_name != 'pull_request' }} name: SQLite (PHP ${{ matrix.php-versions }}) diff --git a/codecov.yml b/codecov.yml index bf38ed6de0af3..66d0b5376208f 100644 --- a/codecov.yml +++ b/codecov.yml @@ -11,3 +11,4 @@ comment: false coverage: status: project: off + patch: off