forked from nickv-nextcloud/gadgetbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Github action phpunit integration
- Loading branch information
Showing
8 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: CI | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build-test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Clone nextcloud for test files | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: nextcloud/server | ||
path: nextcloud | ||
submodules: true | ||
- name: Install App | ||
uses: actions/checkout@v2 | ||
with: | ||
path: nextcloud/apps/gadgetbridge | ||
- name: Configure Nextcloud & install composer | ||
run: | | ||
cd nextcloud | ||
composer install -q --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist | ||
php occ maintenance:install --admin-pass=admin | ||
php occ app:enable gadgetbridge | ||
- name: Install dependencies | ||
run: | | ||
cd nextcloud/apps/gadgetbridge | ||
composer install -q --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist | ||
- name: Run Tests | ||
run: | | ||
cd nextcloud/apps/gadgetbridge | ||
phpunit |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
<phpunit bootstrap="../nextcloud/tests/bootstrap.php" /> | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/7.5/phpunit.xsd" | ||
bootstrap="../../tests/bootstrap.php" | ||
forceCoversAnnotation="true" | ||
beStrictAboutCoversAnnotation="true" | ||
beStrictAboutOutputDuringTests="true" | ||
beStrictAboutTodoAnnotatedTests="true" | ||
verbose="true"> | ||
<testsuites> | ||
<testsuite name="default"> | ||
<directory suffix="Test.php">tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist processUncoveredFilesFromWhitelist="true"> | ||
<directory suffix=".php">lib</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
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
Binary file not shown.
Binary file not shown.
Empty file.