Skip to content

Commit b3774dd

Browse files
Merge pull request #691 from nextcloud/ci/noid/reduce-matrix
ci: Reduce testing matrix
2 parents 5cc4d48 + b186c5c commit b3774dd

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

.github/workflows/shared_workflow.yml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,17 @@ jobs:
1111
name: unit tests and linting
1212
strategy:
1313
matrix:
14-
nextcloudVersion: [ stable26, stable27, stable28, stable29, stable30 ]
15-
phpVersion: [ 8.0, 8.1, 8.2, 8.3]
16-
exclude:
14+
nextcloudVersion: [ stable30 ]
15+
phpVersion: [ 8.1, 8.2, 8.3 ]
16+
include:
1717
- nextcloudVersion: stable26
18-
phpVersion: 8.3
18+
phpVersion: 8.0
1919
- nextcloudVersion: stable27
20-
phpVersion: 8.3
21-
- nextcloudVersion: stable30
2220
phpVersion: 8.0
21+
- nextcloudVersion: stable28
22+
phpVersion: 8.1
23+
- nextcloudVersion: stable29
24+
phpVersion: 8.1
2325
runs-on: ubuntu-20.04
2426
steps:
2527
- name: Checkout for nightly CI
@@ -180,29 +182,33 @@ jobs:
180182
name: API tests
181183
strategy:
182184
matrix:
183-
nextcloudVersion: [ stable26, stable27, stable28, stable29, stable30 ]
185+
nextcloudVersion: [ stable30 ]
184186
phpVersionMajor: [ 8 ]
185-
phpVersionMinor: [ 0, 1, 2, 3 ]
186-
database: [pgsql, mysql]
187-
isScheduledEventNightly:
188-
- ${{github.event_name == 'schedule'}}
189-
exclude:
190-
- nextcloudVersion: stable26
191-
phpVersionMinor: 3
192-
- nextcloudVersion: stable27
193-
phpVersionMinor: 3
187+
phpVersionMinor: [ 1, 2, 3 ]
188+
database: [ mysql ]
189+
include:
190+
# Each database once on the newest Server with preinstalled PHP version
194191
- nextcloudVersion: stable30
192+
phpVersionMajor: 8
193+
phpVersionMinor: 1
194+
database: pgsql
195+
# Each oldServer with the oldest PHP version and one database
196+
- nextcloudVersion: stable26
197+
phpVersionMajor: 8
195198
phpVersionMinor: 0
196-
- isScheduledEventNightly: false
199+
database: mysql
200+
- nextcloudVersion: stable27
201+
phpVersionMajor: 8
197202
phpVersionMinor: 0
198-
- isScheduledEventNightly: false
203+
database: mysql
204+
- nextcloudVersion: stable28
205+
phpVersionMajor: 8
206+
phpVersionMinor: 1
207+
database: mysql
208+
- nextcloudVersion: stable29
209+
phpVersionMajor: 8
199210
phpVersionMinor: 1
200-
- isScheduledEventNightly: false
201-
nextcloudVersion: stable28
202-
phpVersionMinor: 2
203-
- isScheduledEventNightly: false
204-
nextcloudVersion: stable29
205-
phpVersionMinor: 2
211+
database: mysql
206212
runs-on: ubuntu-20.04
207213
container:
208214
image: public.ecr.aws/ubuntu/ubuntu:latest

0 commit comments

Comments
 (0)