forked from nickv-nextcloud/gadgetbridge
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1021 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on:
push:
paths:
- 'tests/**'
- 'lib/**'
pull_request:
paths:
- 'tests/**'
- 'lib/**'
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