diff --git a/.github/workflows/phpunit-mariadb.yml b/.github/workflows/phpunit-mariadb.yml index e128f9916a3..523ba26fbda 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 cafa936e2d8..04be6b01c12 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 c8ee4a74b7b..66a1184437a 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 01ffa101fb0..f35c57e78c1 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 3f90743d5d0..bb7da893cab 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 3c875cd1869..f5512aa33d7 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 67338888f8d..38ac2bca544 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 bf38ed6de0a..66d0b537620 100644 --- a/codecov.yml +++ b/codecov.yml @@ -11,3 +11,4 @@ comment: false coverage: status: project: off + patch: off