Skip to content

Commit 4b49ee0

Browse files
committed
run NC from docker
Signed-off-by: Artur Neumann <[email protected]>
1 parent 375d90b commit 4b49ee0

File tree

1 file changed

+50
-22
lines changed

1 file changed

+50
-22
lines changed

.github/workflows/ci.yml

Lines changed: 50 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,28 @@ jobs:
3535
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_USER: apiadmin
3636
OPENPROJECT_AUTHENTICATION_GLOBAL__BASIC__AUTH_PASSWORD: apiadmin
3737

38+
proxy:
39+
image: ghcr.io/juliushaertl/nextcloud-dev-nginx:latest
40+
ports:
41+
- "80:80"
42+
- "443:443"
43+
env:
44+
DHPARAM_BITS: 2048
45+
DHPARAM_GENERATION: "false"
46+
HTTPS_METHOD: "noredirect"
47+
HSTS: "off"
48+
49+
nextcloud:
50+
image: ghcr.io/juliushaertl/nextcloud-dev-php-81:latest
51+
env:
52+
NEXTCLOUD_AUTOINSTALL: "YES"
53+
NEXTCLOUD_AUTOINSTALL_APPS: "viewer, activity"
54+
VIRTUAL_HOST: "nextcloud"
55+
NEXTCLOUD_TRUSTED_DOMAINS: nextcloud
56+
ports:
57+
- 8080:80
58+
59+
3860
steps:
3961
- name: Cancel previous runs
4062
uses: styfle/[email protected]
@@ -82,18 +104,18 @@ jobs:
82104
- name: Install PHP Dependencies
83105
run: |
84106
composer install --no-progress --prefer-dist --optimize-autoloader
85-
git clone --depth 1 https://github.com/nextcloud/server.git -b ${{ matrix.nextcloudVersion }}
86-
cd server && git submodule update --init
87-
./occ maintenance:install --admin-pass=admin
107+
# git clone --depth 1 https://github.com/nextcloud/server.git -b ${{ matrix.nextcloudVersion }}
108+
# cd server && git submodule update --init
109+
# ./occ maintenance:install --admin-pass=admin
88110

89-
- name: PHP stan
90-
run: make phpstan
91-
92-
- name: PHP code style
93-
run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
111+
# - name: PHP stan
112+
# run: make phpstan
113+
#
114+
# - name: PHP code style
115+
# run: composer run cs:check || ( echo 'Please run `composer run cs:fix` to format your code' && exit 1 )
94116

95-
- name: Install NPM Dependencies
96-
run: npm install
117+
# - name: Install NPM Dependencies
118+
# run: npm install
97119

98120
# - name: JS Lint
99121
# run: npm run lint
@@ -106,18 +128,18 @@ jobs:
106128
# make phpunit
107129
# make jsunit
108130

109-
- name: API Tests
110-
env:
111-
NEXTCLOUD_BASE_URL: http://localhost:8080
112-
run: |
113-
git clone --depth 1 https://github.com/nextcloud/activity.git -b ${{ matrix.nextcloudVersion }} server/apps/activity
114-
mkdir -p server/apps/integration_openproject
115-
cp -r `ls -A | grep -v 'server'` server/apps/integration_openproject/
116-
cd server
117-
./occ a:e activity
118-
./occ a:e integration_openproject
119-
php -S localhost:8080 2> /dev/null &
120-
cd apps/integration_openproject
131+
# - name: API Tests
132+
# env:
133+
# NEXTCLOUD_BASE_URL: http://localhost:8080
134+
# run: |
135+
# git clone --depth 1 https://github.com/nextcloud/activity.git -b ${{ matrix.nextcloudVersion }} server/apps/activity
136+
# mkdir -p server/apps/integration_openproject
137+
# cp -r `ls -A | grep -v 'server'` server/apps/integration_openproject/
138+
# cd server
139+
# ./occ a:e activity
140+
# ./occ a:e integration_openproject
141+
# php -S localhost:8080 2> /dev/null &
142+
# cd apps/integration_openproject
121143
# make api-test
122144

123145
- name: wait on OpenProject
@@ -132,6 +154,12 @@ jobs:
132154
- name: try Nextcloud
133155
run: curl http://localhost:8080/status.php
134156

157+
- name: try Nextcloud2
158+
run: curl http://nextcloud:8080/status.php
159+
160+
- name: try Nextcloud3
161+
run: curl -k https://nextcloud:8080/status.php
162+
135163
- name: JS Code Coverage Summary Report
136164
if: ${{ github.event_name == 'pull_request' && matrix.nextcloudVersion == 'master' && matrix.phpVersion == '7.4' }}
137165
uses: romeovs/[email protected]

0 commit comments

Comments
 (0)