]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(ci): Disable coverage on pull requests 43220/head
authorFerdinand Thiessen <opensource@fthiessen.de>
Thu, 1 Feb 2024 12:57:51 +0000 (13:57 +0100)
committerFerdinand Thiessen <opensource@fthiessen.de>
Fri, 2 Feb 2024 11:57:10 +0000 (12:57 +0100)
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
.github/workflows/files-external-s3.yml
.github/workflows/files-external-webdav.yml
autotest-external.sh

index 2aa1fa37a56c4cd689b38c093b87d94f508841c4..7efdde88da8b3557f34ee88e287bfb884107a940 100644 (file)
@@ -42,8 +42,8 @@ jobs:
       matrix:
         php-versions: ['8.0', '8.1', '8.2', '8.3']
         include:
-          - php-versions: '8.3'
-            coverage: true
+          - php-versions: '8.2'
+            coverage: ${{ github.event_name != 'pull_request' }}
 
     name: php${{ matrix.php-versions }}-s3
 
index 10fe68f68fe9a2b9f895d1f4badfc2bf6d16dd75..46d1226a83c61d735cc21018336597a943daab90 100644 (file)
@@ -42,8 +42,8 @@ jobs:
       matrix:
         php-versions: ['8.0', '8.1', '8.2', '8.3']
         include:
-          - php-versions: '8.3'
-            coverage: true
+          - php-versions: '8.2'
+            coverage: ${{ github.event_name != 'pull_request' }}
 
     name: php${{ matrix.php-versions }}-webdav
 
index ca5e2c2fa0b930280c99f4448725009e7a94832f..fb768b2663694b13c884c93df670570b26645c3c 100755 (executable)
@@ -35,7 +35,7 @@ if ! [ -x "$PHPUNIT" ]; then
        if [ -x "$PWD/build/integration/vendor/phpunit/phpunit/phpunit" ]; then
                PHPUNIT="$PWD/build/integration/vendor/phpunit/phpunit/phpunit"
        else
-               echo "phpunit executable not found, please install phpunit version >= 9.6" >&2
+               echo "phpunit executable not found, please install phpunit version >= 9.0" >&2
                exit 3
        fi
 fi
@@ -44,8 +44,8 @@ PHPUNIT_VERSION=$("$PHPUNIT" --version | cut -d" " -f2)
 PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1)
 PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2)
 
-if ! [ $PHPUNIT_MAJOR_VERSION -gt 9 -o \( $PHPUNIT_MAJOR_VERSION -eq 9 -a $PHPUNIT_MINOR_VERSION -ge 6 \) ]; then
-       echo "phpunit version >= 9.6 required. Version found: $PHPUNIT_VERSION" >&2
+if ! [ $PHPUNIT_MAJOR_VERSION -gt 9 -o \( $PHPUNIT_MAJOR_VERSION -eq 9 -a $PHPUNIT_MINOR_VERSION -ge 0 \) ]; then
+       echo "phpunit version >= 9.0 required. Version found: $PHPUNIT_VERSION" >&2
        exit 4
 fi