From 2c4e367ae582115bf9b9c18f7850eea12c4e90fc Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 23 Oct 2023 01:47:52 +0200 Subject: [PATCH] fixup: test Signed-off-by: Ferdinand Thiessen --- .github/workflows/phpunit-sqlite.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index ca489cf2d21a9..198d2fd908d77 100644 --- a/.github/workflows/phpunit-sqlite.yml +++ b/.github/workflows/phpunit-sqlite.yml @@ -57,7 +57,7 @@ jobs: matrix: php-versions: ['8.0', '8.1', '8.2', '8.3'] include: - - php-versions: '8.0' + - php-versions: '8.1' full-testsuite: true coverage: true @@ -77,13 +77,15 @@ jobs: submodules: true - name: Set up php ${{ matrix.php-versions }} - uses: shivammathur/setup-php@4bd44f22a98a19e0950cbad5f31095157cc9621b # v2 + uses: shivammathur/setup-php@7fdd3ece872ec7ec4c098ae5ab7637d5e0a96067 # v2 with: php-version: ${{ matrix.php-versions }} # https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation extensions: bz2, ctype, curl, dom, fileinfo, gd, iconv, intl, json, libxml, mbstring, openssl, pcntl, posix, redis, session, simplexml, xmlreader, xmlwriter, zip, zlib, sqlite, pdo_sqlite ${{ matrix.full-testsuite && ', imagick' || '' }} coverage: ${{ matrix.coverage && 'xdebug' || 'none' }} ini-file: development + # Required for tests that use pcntl + ini-values: disable_functions="" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -96,7 +98,7 @@ jobs: cp tests/redis.config.php config/ cp tests/preseed-config.php config/config.php ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-user=root --database-pass=rootpassword --admin-user admin --admin-pass admin - php -f tests/enable_all.php | grep -i -C9999 error && echo "Error during app setup" && exit 1 || exit 0 + php -f index.php - name: PHPUnit database tests run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml' || '' }}