20
20
APP_PORT : 9009
21
21
NC_AUTH_USER : " admin"
22
22
NC_AUTH_PASS : " adminpassword"
23
+ NEXTCLOUD_VERSION : 28.0.7
24
+ NEXTCLOUD_BRANCH : stable28
23
25
24
26
jobs :
25
27
analysis :
30
32
- uses : actions/checkout@v4
31
33
- uses : actions/setup-python@v5
32
34
with :
33
- python-version : " 3.10"
35
+ python-version : ' 3.10'
34
36
35
37
- name : Install from source
36
38
run : python3 -m pip install ".[dev]"
41
43
tests-maria :
42
44
needs : [analysis]
43
45
runs-on : ubuntu-22.04
44
- name : ${{ matrix.nextcloud }} • 🐘${{ matrix.php-version }} • 🐍${{ matrix.python }} • Maria
45
- strategy :
46
- fail-fast : false
47
- matrix :
48
- include :
49
- - nextcloud : " 27.1.11"
50
- python : " 3.10"
51
- php-version : " 8.1"
46
+ name : 28.X.X • 🐘8.1 • 🐍3.10 • Maria
52
47
timeout-minutes : 60
53
48
54
49
services :
@@ -69,31 +64,27 @@ jobs:
69
64
- name : Set up php
70
65
uses : shivammathur/setup-php@v2
71
66
with :
72
- php-version : ${{ matrix.php-version }}
67
+ php-version : ' 8.1 '
73
68
extensions : mbstring, fileinfo, intl, pdo_mysql, zip, gd
74
69
75
70
- uses : actions/setup-python@v5
76
71
with :
77
- python-version : ${{ matrix.python }}
78
-
79
- - name : Stable27
80
- if : ${{ startsWith(matrix.nextcloud, '27.') }}
81
- run : echo "NC_BRANCH_NAME=stable27" >> $GITHUB_ENV
72
+ python-version : ' 3.10'
82
73
83
74
- name : cache-nextcloud
84
75
id : nextcloud_setup
85
76
uses : actions/cache@v4
86
77
with :
87
- path : nextcloud-${{ matrix.nextcloud }}.tar.bz2
88
- key : ${{ matrix.nextcloud }}
78
+ path : nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2
79
+ key : ${{ env.NEXTCLOUD_VERSION }}
89
80
90
81
- name : Download Nextcloud
91
82
if : steps.nextcloud_setup.outputs.cache-hit != 'true'
92
- run : wget -q https://download.nextcloud.com/server/releases/nextcloud-${{ matrix.nextcloud }}.tar.bz2
83
+ run : wget -q https://download.nextcloud.com/server/releases/nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2
93
84
94
85
- name : Set up Nextcloud
95
86
run : |
96
- tar -xjf nextcloud-${{ matrix.nextcloud }}.tar.bz2 --strip-components 1
87
+ tar -xjf nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2 --strip-components 1
97
88
mkdir data
98
89
php occ maintenance:install --verbose --database=mysql --database-name=nextcloud \
99
90
--database-host=127.0.0.1 --database-user=root --database-pass=rootpassword \
@@ -135,7 +126,7 @@ jobs:
135
126
with :
136
127
path : apps/spreed
137
128
repository : nextcloud/spreed
138
- ref : ${{ env.NC_BRANCH_NAME }}
129
+ ref : ${{ env.NEXTCLOUD_BRANCH }}
139
130
140
131
- name : Install Talk
141
132
working-directory : apps/spreed
@@ -170,34 +161,27 @@ jobs:
170
161
kill -15 $(cat /tmp/_install_models.pid)
171
162
timeout 3m tail --pid=$(cat /tmp/_install_models.pid) -f /dev/null
172
163
cd nc_py_api
173
- coverage combine && coverage xml -o coverage_maria_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
164
+ coverage combine && coverage xml -o coverage_maria_${{ env.NEXTCLOUD_VERSION }}_3.10_8.1 .xml
174
165
175
166
- name : Upload Codecov to artifacts
176
167
uses : actions/upload-artifact@v4
177
168
with :
178
- name : coverage_maria_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
179
- path : nc_py_api/coverage_maria_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
169
+ name : coverage_maria_${{ env.NEXTCLOUD_VERSION }}_3.10_8.1 .xml
170
+ path : nc_py_api/coverage_maria_${{ env.NEXTCLOUD_VERSION }}_3.10_8.1 .xml
180
171
if-no-files-found : error
181
172
182
173
- name : Upload NC logs
183
174
if : always()
184
175
uses : actions/upload-artifact@v4
185
176
with :
186
- name : nc_log_maria_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }}
177
+ name : nc_log_maria_${{ env.NEXTCLOUD_VERSION }}_3.10_8.1
187
178
path : data/nextcloud.log
188
179
if-no-files-found : warn
189
180
190
181
tests-pgsql :
191
182
needs : [analysis]
192
183
runs-on : ubuntu-22.04
193
- name : ${{ matrix.nextcloud }} • 🐘${{ matrix.php-version }} • 🐍${{ matrix.python }} • PgSQL
194
- strategy :
195
- fail-fast : false
196
- matrix :
197
- include :
198
- - nextcloud : " 27.1.11"
199
- python : " 3.11"
200
- php-version : " 8.2"
184
+ name : 28.X.X • 🐘8.2 • 🐍3.11 • PgSQL
201
185
env :
202
186
NC_dbname : nextcloud_abz
203
187
DATABASE_PGSQL : 1
@@ -219,34 +203,30 @@ jobs:
219
203
- 5432:5432
220
204
221
205
steps :
222
- - name : Set up php ${{ matrix.php-version }}
206
+ - name : Set up php 8.2
223
207
uses : shivammathur/setup-php@v2
224
208
with :
225
- php-version : ${{ matrix.php-version }}
209
+ php-version : ' 8.2 '
226
210
extensions : mbstring, fileinfo, intl, pdo_mysql, zip, gd
227
211
228
212
- uses : actions/setup-python@v5
229
213
with :
230
- python-version : ${{ matrix.python }}
231
-
232
- - name : Stable27
233
- if : ${{ startsWith(matrix.nextcloud, '27.') }}
234
- run : echo "NC_BRANCH_NAME=stable27" >> $GITHUB_ENV
214
+ python-version : ' 3.11'
235
215
236
216
- name : cache-nextcloud
237
217
id : nextcloud_setup
238
218
uses : actions/cache@v4
239
219
with :
240
- path : nextcloud-${{ matrix.nextcloud }}.tar.bz2
241
- key : ${{ matrix.nextcloud }}
220
+ path : nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2
221
+ key : ${{ env.NEXTCLOUD_VERSION }}
242
222
243
223
- name : Download Nextcloud
244
224
if : steps.nextcloud_setup.outputs.cache-hit != 'true'
245
- run : wget -q https://download.nextcloud.com/server/releases/nextcloud-${{ matrix.nextcloud }}.tar.bz2
225
+ run : wget -q https://download.nextcloud.com/server/releases/nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2
246
226
247
227
- name : Set up Nextcloud
248
228
run : |
249
- tar -xjf nextcloud-${{ matrix.nextcloud }}.tar.bz2 --strip-components 1
229
+ tar -xjf nextcloud-${{ env.NEXTCLOUD_VERSION }}.tar.bz2 --strip-components 1
250
230
mkdir data
251
231
php occ maintenance:install --verbose --database=pgsql --database-name=${{ env.NC_dbname }} \
252
232
--database-host=127.0.0.1 --database-user=root --database-pass=rootpassword \
@@ -288,7 +268,7 @@ jobs:
288
268
with :
289
269
path : apps/spreed
290
270
repository : nextcloud/spreed
291
- ref : ${{ env.NC_BRANCH_NAME }}
271
+ ref : ${{ env.NEXTCLOUD_BRANCH }}
292
272
293
273
- name : Install Talk
294
274
working-directory : apps/spreed
@@ -323,27 +303,27 @@ jobs:
323
303
kill -15 $(cat /tmp/_install_models.pid)
324
304
timeout 3m tail --pid=$(cat /tmp/_install_models.pid) -f /dev/null
325
305
cd nc_py_api
326
- coverage combine && coverage xml -o coverage_pgsql_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
306
+ coverage combine && coverage xml -o coverage_pgsql_${{ env.NEXTCLOUD_VERSION }}_3.11_8.2 .xml
327
307
328
308
- name : Upload Codecov to artifacts
329
309
uses : actions/upload-artifact@v4
330
310
with :
331
- name : coverage_pgsql_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
332
- path : nc_py_api/coverage_pgsql_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }} .xml
311
+ name : coverage_pgsql_${{ env.NEXTCLOUD_VERSION }}_3.11_8.2 .xml
312
+ path : nc_py_api/coverage_pgsql_${{ env.NEXTCLOUD_VERSION }}_3.11_8.2 .xml
333
313
if-no-files-found : error
334
314
335
315
- name : Upload NC logs
336
316
if : always()
337
317
uses : actions/upload-artifact@v4
338
318
with :
339
- name : nc_log_pgsql_${{ matrix.nextcloud }}_${{ matrix.python }}_${{ matrix.php-version }}
319
+ name : nc_log_pgsql_${{ env.NEXTCLOUD_VERSION }}_3.11_8.2
340
320
path : data/nextcloud.log
341
321
if-no-files-found : warn
342
322
343
- tests-stable27- oci :
323
+ tests-oci :
344
324
needs : [analysis]
345
325
runs-on : ubuntu-22.04
346
- name : stable27 • 🐘8.1 • 🐍3.11 • OCI
326
+ name : stable28 • 🐘8.1 • 🐍3.11 • OCI
347
327
timeout-minutes : 60
348
328
349
329
services :
@@ -378,13 +358,13 @@ jobs:
378
358
with :
379
359
submodules : true
380
360
repository : nextcloud/server
381
- ref : ' stable27 '
361
+ ref : ${{ env.NEXTCLOUD_BRANCH }}
382
362
383
363
- name : Checkout Notifications
384
364
uses : actions/checkout@v4
385
365
with :
386
366
repository : nextcloud/notifications
387
- ref : ' stable27 '
367
+ ref : ${{ env.NEXTCLOUD_BRANCH }}
388
368
path : apps/notifications
389
369
390
370
- name : Set up Nextcloud
@@ -430,22 +410,22 @@ jobs:
430
410
run : |
431
411
coverage run --data-file=.coverage.ci -m pytest
432
412
coverage run --data-file=.coverage.at_the_end -m pytest tests/_tests_at_the_end.py
433
- coverage combine && coverage xml -o coverage_oci_stable27_3 .11_8.1.xml
413
+ coverage combine && coverage xml -o coverage_oci_${{ env.NEXTCLOUD_BRANCH }}_3 .11_8.1.xml
434
414
env :
435
415
SKIP_NC_CLIENT_TESTS : 1
436
416
437
417
- name : Upload Codecov to artifacts
438
418
uses : actions/upload-artifact@v4
439
419
with :
440
- name : coverage_oci_stable27_3 .11_8.1.xml
441
- path : nc_py_api/coverage_oci_stable27_3 .11_8.1.xml
420
+ name : coverage_oci_${{ env.NEXTCLOUD_BRANCH }}_3 .11_8.1.xml
421
+ path : nc_py_api/coverage_oci_${{ env.NEXTCLOUD_BRANCH }}_3 .11_8.1.xml
442
422
if-no-files-found : error
443
423
444
424
- name : Upload NC logs
445
425
if : always()
446
426
uses : actions/upload-artifact@v4
447
427
with :
448
- name : nc_log_oci_stable27_3 .11_8.1
428
+ name : nc_log_oci_${{ env.NEXTCLOUD_BRANCH }}_3 .11_8.1
449
429
path : data/nextcloud.log
450
430
if-no-files-found : warn
451
431
@@ -456,7 +436,7 @@ jobs:
456
436
strategy :
457
437
fail-fast : false
458
438
matrix :
459
- nextcloud : [ 'stable27 ', 'stable28 ', 'master' ]
439
+ nextcloud : [ 'stable28 ', 'stable29 ', 'master' ]
460
440
timeout-minutes : 60
461
441
462
442
services :
@@ -477,7 +457,7 @@ jobs:
477
457
- name : Set up php
478
458
uses : shivammathur/setup-php@v2
479
459
with :
480
- php-version : 8.2
460
+ php-version : ' 8.2'
481
461
extensions : mbstring, fileinfo, intl, pdo_mysql, zip, gd, curl
482
462
483
463
- uses : actions/setup-python@v5
@@ -635,7 +615,7 @@ jobs:
635
615
strategy :
636
616
fail-fast : false
637
617
matrix :
638
- nextcloud : [ 'stable27 ', 'stable28 ', 'master' ]
618
+ nextcloud : [ 'stable28 ', 'stable29 ', 'master' ]
639
619
env :
640
620
NC_dbname : nextcloud_abz
641
621
DATABASE_PGSQL : 1
@@ -660,7 +640,7 @@ jobs:
660
640
- name : Set up php
661
641
uses : shivammathur/setup-php@v2
662
642
with :
663
- php-version : 8.2
643
+ php-version : ' 8.2'
664
644
extensions : mbstring, fileinfo, intl, pdo_mysql, zip, gd
665
645
666
646
- uses : actions/setup-python@v5
@@ -807,7 +787,7 @@ jobs:
807
787
strategy :
808
788
fail-fast : false
809
789
matrix :
810
- nextcloud : [ 'stable26 ', 'stable27 ', 'stable28 ', 'master' ]
790
+ nextcloud : [ 'stable27 ', 'stable28 ', 'stable29 ', 'master' ]
811
791
env :
812
792
NEXTCLOUD_URL : " http://localhost:8080/index.php"
813
793
timeout-minutes : 60
@@ -816,12 +796,12 @@ jobs:
816
796
- name : Set up php
817
797
uses : shivammathur/setup-php@v2
818
798
with :
819
- php-version : 8.1
799
+ php-version : ' 8.1'
820
800
extensions : mbstring, fileinfo, intl, sqlite, pdo_sqlite, zip, gd, curl
821
801
822
802
- uses : actions/setup-python@v5
823
803
with :
824
- python-version : 3.12
804
+ python-version : ' 3.12'
825
805
826
806
- name : Checkout server
827
807
uses : actions/checkout@v4
@@ -847,7 +827,7 @@ jobs:
847
827
848
828
- name : Checkout Files Locking
849
829
uses : actions/checkout@v4
850
- if : ${{ !startsWith(matrix.nextcloud, 'stable26 ') && !startsWith(matrix.nextcloud, 'master') }}
830
+ if : ${{ !startsWith(matrix.nextcloud, 'stable27 ') && !startsWith(matrix.nextcloud, 'master') }}
851
831
with :
852
832
repository : nextcloud/files_lock
853
833
ref : ${{ matrix.nextcloud }}
@@ -871,7 +851,7 @@ jobs:
871
851
run : ./occ app:enable notes
872
852
873
853
- name : Enable Files Locking
874
- if : ${{ !startsWith(matrix.nextcloud, 'stable26 ') && !startsWith(matrix.nextcloud, 'master') }}
854
+ if : ${{ !startsWith(matrix.nextcloud, 'stable27 ') && !startsWith(matrix.nextcloud, 'master') }}
875
855
run : ./occ app:enable files_lock
876
856
877
857
- name : Checkout NcPyApi
@@ -928,7 +908,7 @@ jobs:
928
908
if-no-files-found : warn
929
909
930
910
tests-upload-coverage :
931
- needs : [tests-maria, tests-pgsql, tests-stable27- oci, tests-latest-maria, test-latest-pgsql, tests-client-sqlite]
911
+ needs : [tests-maria, tests-pgsql, tests-oci, tests-latest-maria, test-latest-pgsql, tests-client-sqlite]
932
912
permissions :
933
913
contents : none
934
914
runs-on : ubuntu-22.04
0 commit comments