aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-29 12:05:00 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-01-29 12:05:00 +0100
commit625d8ee694225dd15e6d8c8778c2be10e0b20fb2 (patch)
tree86c1eb715dc0e40b31898c5e789acc81f732982a
parent3749c2c79bc830107f7eb903e990b3fa69e28dac (diff)
downloadnextcloud-server-625d8ee694225dd15e6d8c8778c2be10e0b20fb2.tar.gz
nextcloud-server-625d8ee694225dd15e6d8c8778c2be10e0b20fb2.zip
chore(ci): Disable code coverage upload on pull request
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
-rw-r--r--.github/workflows/phpunit-mariadb.yml2
-rw-r--r--.github/workflows/phpunit-memcached.yml2
-rw-r--r--.github/workflows/phpunit-mysql.yml2
-rw-r--r--.github/workflows/phpunit-nodb.yml2
-rw-r--r--.github/workflows/phpunit-oci.yml2
-rw-r--r--.github/workflows/phpunit-pgsql.yml4
-rw-r--r--.github/workflows/phpunit-sqlite.yml2
7 files changed, 8 insertions, 8 deletions
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 }})