From c7a98a343b4a792117a2880d74f999625e977461 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Mon, 2 Oct 2023 16:07:43 +0200 Subject: [PATCH] ci: use vendor-bin phpunit for nodb tests Signed-off-by: Daniel Kesselberg --- .github/workflows/nodb.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nodb.yml b/.github/workflows/nodb.yml index 270d8937fec4e..7f0fb2454c7a6 100644 --- a/.github/workflows/nodb.yml +++ b/.github/workflows/nodb.yml @@ -63,7 +63,6 @@ jobs: with: php-version: ${{ matrix.php-versions }} extensions: apcu, ctype, curl, dom, fileinfo, gd, imagick, intl, json, ldap, mbstring, openssl, pcntl, pdo_sqlite, posix, redis, sqlite, xml, zip - tools: phpunit:9 coverage: none ini-file: development ini-values: @@ -75,6 +74,7 @@ jobs: env: DB_PORT: 4444 run: | + composer install mkdir data ./occ maintenance:install --verbose --database=sqlite --database-name=nextcloud --database-host=127.0.0.1 --database-port=$DB_PORT --database-user=autotest --database-pass=rootpassword --admin-user admin --admin-pass admin php -f index.php @@ -83,8 +83,7 @@ jobs: run: ./occ app:enable admin_audit encryption federatedfilesharing federation files_sharing files_trashbin files_versions provisioning_api user_ldap - name: PHPUnit - working-directory: tests - run: phpunit --configuration phpunit-autotest.xml --exclude-group DB,SLOWDB,PRIMARY-azure,PRIMARY-s3,PRIMARY-swift + run: composer run test -- --exclude-group DB,SLOWDB,PRIMARY-azure,PRIMARY-s3,PRIMARY-swift summary: runs-on: ubuntu-latest