Remove redundant shields from README #151
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |