Skip to content

Update app description in info.xml and minor formatting fixes #157

Update app description in info.xml and minor formatting fixes

Update app description in info.xml and minor formatting fixes #157

Workflow file for this run

name: tests
on: [push, pull_request, workflow_dispatch]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Install system package dependencies
run: sudo apt update && sudo apt install composer php-sqlite3
- name: Checkout latest Nextcloud
uses: actions/checkout@v4
with:
repository: nextcloud/server
path: ./nextcloud
- name: Checkout 3rd party submodule for Nextcloud
working-directory: ./nextcloud
run: git submodule update --init
- name: Install Nextcloud with Sqlite database
working-directory: ./nextcloud
run: php occ maintenance:install --database "sqlite" --database-name "nextcloud" --admin-user "admin" --admin-pass "adminpassword"
- name: Checkout user_backend_sql_raw (test subject)
uses: actions/checkout@v4
with:
path: ./nextcloud/apps/user_backend_sql_raw
- name: Install PHP dependencies with composer
uses: php-actions/composer@v6
with:
php_version: 8.3
working_dir: ./nextcloud/apps/user_backend_sql_raw
# As of 2024-04-28 can't use php-actions/phpunit here, because it has no
# way to set the working path. Setting `configuration` or `testsuite` to
# the location of the phpunit.xml file makes it complain about composer.json
# not being there. Therefore, using "raw" phpunit call.
- name: Run all PHPUnit tests
working-directory: ./nextcloud/apps/user_backend_sql_raw
run: php ./vendor/phpunit/phpunit/phpunit