diff --git a/.github/workflows/phpunit-sqlite.yml b/.github/workflows/phpunit-sqlite.yml index ca489cf2d21a9..cc1b995edfab4 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 }} @@ -98,7 +100,11 @@ jobs: ./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 + - name: Nextcloud debug information + run: ./occ app:list && echo "======= System config "======= && ./occ config:list system + - name: PHPUnit database tests + if: false run: composer run test:db ${{ matrix.coverage && ' -- --coverage-clover ./clover.db.xml' || '' }} - name: Upload db code coverage