Skip to content

Commit ea15788

Browse files
committed
ci: skip nextcloud master branch in release branches
1 parent 22508ef commit ea15788

1 file changed

Lines changed: 25 additions & 11 deletions

File tree

.github/workflows/shared_workflow.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,17 @@ jobs:
1111
name: unit tests and linting
1212
strategy:
1313
matrix:
14-
nextcloudVersion: [ stable31 ]
14+
nextcloudVersion: [ stable31, master ]
1515
phpVersion: [ 8.1, 8.2, 8.3 ]
16-
# This condition is temporary and can be removed once Nextcloud 31 support is added in the integration app for the release/2.7 branch
17-
isReleaseBranch:
18-
- ${{ inputs.branch == 'release/2.7'}}
16+
isReleaseBranch: ${{ startsWith(inputs.branch, 'release/') || startsWith(github.ref, 'refs/heads/release/') }}
17+
# will be overridden by the include section
18+
exclude:
19+
- nextcloudVersion: master
20+
isReleaseBranch: true
21+
- nextcloudVersion: master
22+
phpVersion: 8.1
23+
- nextcloudVersion: master
24+
phpVersion: 8.2
1925
include:
2026
- nextcloudVersion: stable27
2127
phpVersion: 8.0
@@ -25,9 +31,6 @@ jobs:
2531
phpVersion: 8.1
2632
- nextcloudVersion: stable30
2733
phpVersion: 8.2
28-
- nextcloudVersion: master
29-
phpVersion: 8.3
30-
isReleaseBranch: false
3134
runs-on: ubuntu-20.04
3235
steps:
3336
- name: Checkout for nightly CI
@@ -183,13 +186,22 @@ jobs:
183186
name: API tests
184187
strategy:
185188
matrix:
186-
nextcloudVersion: [ stable31 ]
189+
nextcloudVersion: [ stable31, master ]
187190
phpVersionMajor: [ 8 ]
188191
phpVersionMinor: [ 1, 2, 3 ]
189192
database: [ mysql ]
190-
# This condition is temporary and can be removed once Nextcloud 31 support is added in the integration app for the release/2.7 branch
191193
isReleaseBranch:
192-
- ${{ inputs.branch == 'release/2.7'}}
194+
- ${{ startsWith(inputs.branch, 'release/') || startsWith(github.base_ref, 'release/') }}
195+
# will be overridden by the include section
196+
exclude:
197+
- nextcloudVersion: master
198+
isReleaseBranch: true
199+
- nextcloudVersion: master
200+
phpVersionMajor: 8
201+
phpVersionMinor: 1
202+
- nextcloudVersion: master
203+
phpVersionMajor: 8
204+
phpVersionMinor: 2
193205
include:
194206
# Each database once on the newest Server with preinstalled PHP version
195207
- nextcloudVersion: stable31
@@ -216,7 +228,9 @@ jobs:
216228
phpVersionMajor: 8
217229
phpVersionMinor: 3
218230
database: mysql
219-
isReleaseBranch: false
231+
exclude:
232+
- nextcloudVersion: master
233+
isReleaseBranch: true
220234

221235
runs-on: ubuntu-20.04
222236
container:

0 commit comments

Comments
 (0)