Browse Source

fix(ci): Disable coverage on pull requests

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>
tags/v29.0.0beta1
Ferdinand Thiessen 3 months ago
parent
commit
f546a2fe14

+ 2
- 2
.github/workflows/files-external-s3.yml View File

matrix: matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3'] php-versions: ['8.0', '8.1', '8.2', '8.3']
include: include:
- php-versions: '8.3'
coverage: true
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}


name: php${{ matrix.php-versions }}-s3 name: php${{ matrix.php-versions }}-s3



+ 2
- 2
.github/workflows/files-external-webdav.yml View File

matrix: matrix:
php-versions: ['8.0', '8.1', '8.2', '8.3'] php-versions: ['8.0', '8.1', '8.2', '8.3']
include: include:
- php-versions: '8.3'
coverage: true
- php-versions: '8.2'
coverage: ${{ github.event_name != 'pull_request' }}


name: php${{ matrix.php-versions }}-webdav name: php${{ matrix.php-versions }}-webdav



+ 3
- 3
autotest-external.sh View File

if [ -x "$PWD/build/integration/vendor/phpunit/phpunit/phpunit" ]; then if [ -x "$PWD/build/integration/vendor/phpunit/phpunit/phpunit" ]; then
PHPUNIT="$PWD/build/integration/vendor/phpunit/phpunit/phpunit" PHPUNIT="$PWD/build/integration/vendor/phpunit/phpunit/phpunit"
else 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 exit 3
fi fi
fi fi
PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1) PHPUNIT_MAJOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f1)
PHPUNIT_MINOR_VERSION=$(echo $PHPUNIT_VERSION | cut -d"." -f2) 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 exit 4
fi fi



Loading…
Cancel
Save