Skip to content

Commit b50277f

Browse files
SystemKeeperbackportbot[bot]
authored andcommitted
chore: Group phpunit runs
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent 980e5ee commit b50277f

11 files changed

Lines changed: 133 additions & 232 deletions

.github/workflows/phpunit-kvstore.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@
44
name: PHPUnit key-value store
55

66
on:
7-
pull_request:
7+
workflow_call:
88

99
permissions:
1010
contents: read
1111

12-
concurrency:
13-
group: phpunit-kvstore-${{ github.head_ref || github.run_id }}
14-
cancel-in-progress: true
15-
1612
env:
1713
VALKEY_IMAGE: valkey/valkey:8
1814

@@ -38,9 +34,6 @@ jobs:
3834
phpunit-kvstore:
3935
runs-on: ubuntu-latest
4036

41-
needs: changes
42-
if: needs.changes.outputs.src != 'false'
43-
4437
strategy:
4538
fail-fast: false
4639
matrix:
@@ -125,17 +118,3 @@ jobs:
125118
if: always()
126119
run: |
127120
cat data/nextcloud.log
128-
129-
summary:
130-
permissions:
131-
contents: none
132-
runs-on: ubuntu-latest-low
133-
needs: [changes, phpunit-kvstore]
134-
135-
if: always()
136-
137-
name: phpunit-kvstore-summary
138-
139-
steps:
140-
- name: Summary status
141-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-kvstore.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-mariadb.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99
name: PHPUnit MariaDB
1010

1111
on:
12-
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
12+
workflow_call:
1513

1614
permissions:
1715
contents: read
1816

19-
concurrency:
20-
group: phpunit-mariadb-${{ github.head_ref || github.run_id }}
21-
cancel-in-progress: true
22-
2317
jobs:
2418
changes:
2519
runs-on: ubuntu-latest-low
@@ -53,9 +47,6 @@ jobs:
5347
phpunit-mariadb:
5448
runs-on: ubuntu-latest
5549

56-
needs: changes
57-
if: needs.changes.outputs.src != 'false'
58-
5950
strategy:
6051
fail-fast: false
6152
matrix:
@@ -129,17 +120,3 @@ jobs:
129120
env:
130121
DB_ROOT_USER: root
131122
DB_ROOT_PASS: rootpassword
132-
133-
summary:
134-
permissions:
135-
contents: none
136-
runs-on: ubuntu-latest-low
137-
needs: [changes, phpunit-mariadb]
138-
139-
if: always()
140-
141-
name: phpunit-mariadb-summary
142-
143-
steps:
144-
- name: Summary status
145-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mariadb.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-memcached.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99
name: PHPUnit memcached
1010

1111
on:
12-
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
12+
workflow_call:
1513

1614
permissions:
1715
contents: read
1816

19-
concurrency:
20-
group: phpunit-memcached-${{ github.head_ref || github.run_id }}
21-
cancel-in-progress: true
22-
2317
jobs:
2418
changes:
2519
runs-on: ubuntu-latest-low
@@ -50,9 +44,6 @@ jobs:
5044
phpunit-memcached:
5145
runs-on: ubuntu-latest
5246

53-
needs: changes
54-
if: needs.changes.outputs.src != 'false'
55-
5647
strategy:
5748
fail-fast: false
5849
matrix:
@@ -105,17 +96,3 @@ jobs:
10596
if: always()
10697
run: |
10798
cat data/nextcloud.log
108-
109-
summary:
110-
permissions:
111-
contents: none
112-
runs-on: ubuntu-latest-low
113-
needs: [changes, phpunit-memcached]
114-
115-
if: always()
116-
117-
name: phpunit-memcached-summary
118-
119-
steps:
120-
- name: Summary status
121-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-memcached.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-mysql-sharding.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99
name: PHPUnit sharding
1010

1111
on:
12-
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
12+
workflow_call:
1513

1614
permissions:
1715
contents: read
1816

19-
concurrency:
20-
group: phpunit-mysql-sharding-${{ github.head_ref || github.run_id }}
21-
cancel-in-progress: true
22-
2317
jobs:
2418
changes:
2519
runs-on: ubuntu-latest-low
@@ -50,9 +44,6 @@ jobs:
5044
phpunit-mysql:
5145
runs-on: ubuntu-latest
5246

53-
needs: changes
54-
if: needs.changes.outputs.src != 'false'
55-
5647
strategy:
5748
fail-fast: false
5849
matrix:
@@ -176,17 +167,3 @@ jobs:
176167
if: always()
177168
run: |
178169
cat data/nextcloud.log
179-
180-
summary:
181-
permissions:
182-
contents: none
183-
runs-on: ubuntu-latest-low
184-
needs: [changes, phpunit-mysql]
185-
186-
if: always()
187-
188-
name: phpunit-mysql-summary
189-
190-
steps:
191-
- name: Summary status
192-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-mysql.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99
name: PHPUnit mysql
1010

1111
on:
12-
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
12+
workflow_call:
1513

1614
permissions:
1715
contents: read
1816

19-
concurrency:
20-
group: phpunit-mysql-${{ github.head_ref || github.run_id }}
21-
cancel-in-progress: true
22-
2317
jobs:
2418
changes:
2519
runs-on: ubuntu-latest-low
@@ -53,9 +47,6 @@ jobs:
5347
phpunit-mysql:
5448
runs-on: ubuntu-latest
5549

56-
needs: changes
57-
if: needs.changes.outputs.src != 'false'
58-
5950
strategy:
6051
fail-fast: false
6152
matrix:
@@ -134,17 +125,3 @@ jobs:
134125
if: always()
135126
run: |
136127
cat data/nextcloud.log
137-
138-
summary:
139-
permissions:
140-
contents: none
141-
runs-on: ubuntu-latest-low
142-
needs: [changes, phpunit-mysql]
143-
144-
if: always()
145-
146-
name: phpunit-mysql-summary
147-
148-
steps:
149-
- name: Summary status
150-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-mysql.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-nodb.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,11 @@
1111
name: PHPUnit nodb
1212

1313
on:
14-
pull_request:
15-
schedule:
16-
- cron: "5 2 * * *"
14+
workflow_call:
1715

1816
permissions:
1917
contents: read
2018

21-
concurrency:
22-
group: phpunit-nodb-${{ github.head_ref || github.run_id }}
23-
cancel-in-progress: true
24-
2519
jobs:
2620
changes:
2721
runs-on: ubuntu-latest-low
@@ -53,9 +47,6 @@ jobs:
5347
phpunit-nodb:
5448
runs-on: ubuntu-latest
5549

56-
needs: changes
57-
if: needs.changes.outputs.src != 'false'
58-
5950
strategy:
6051
fail-fast: false
6152
matrix:
@@ -110,17 +101,3 @@ jobs:
110101
if: always()
111102
run: |
112103
cat data/nextcloud.log
113-
114-
summary:
115-
permissions:
116-
contents: none
117-
runs-on: ubuntu-latest-low
118-
needs: [changes, phpunit-nodb]
119-
120-
if: always()
121-
122-
name: phpunit-nodb-summary
123-
124-
steps:
125-
- name: Summary status
126-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-nodb.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-object-store-primary.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
# SPDX-License-Identifier: MIT
33
name: PHPUnit primary object store
44
on:
5-
pull_request:
6-
schedule:
7-
- cron: "15 2 * * *"
5+
workflow_call:
86

97
permissions:
108
contents: read
119

12-
concurrency:
13-
group: phpunit-object-store-primary-${{ github.head_ref || github.run_id }}
14-
cancel-in-progress: true
15-
1610
jobs:
1711
changes:
1812
runs-on: ubuntu-latest-low
@@ -42,9 +36,8 @@ jobs:
4236
4337
object-store-primary-tests-minio:
4438
runs-on: ubuntu-latest
45-
needs: changes
4639

47-
if: ${{ github.repository_owner != 'nextcloud-gmbh' && needs.changes.outputs.src != 'false' }}
40+
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
4841

4942
strategy:
5043
fail-fast: false
@@ -113,13 +106,3 @@ jobs:
113106
cat data/nextcloud.log
114107
docker ps -a
115108
docker ps -aq | while read container ; do IMAGE=$(docker inspect --format='{{.Config.Image}}' $container); echo $IMAGE; docker logs $container; echo "\n\n" ; done
116-
117-
object-store-primary-summary:
118-
runs-on: ubuntu-latest-low
119-
needs: [changes, object-store-primary-tests-minio]
120-
121-
if: always()
122-
123-
steps:
124-
- name: Summary status
125-
run: if ${{ needs.changes.outputs.src != 'false' && needs.object-store-primary-tests-minio.result != 'success' }}; then exit 1; fi

.github/workflows/phpunit-oci.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,11 @@
99
name: PHPUnit OCI
1010

1111
on:
12-
pull_request:
13-
schedule:
14-
- cron: "5 2 * * *"
12+
workflow_call:
1513

1614
permissions:
1715
contents: read
1816

19-
concurrency:
20-
group: phpunit-oci-${{ github.head_ref || github.run_id }}
21-
cancel-in-progress: true
22-
2317
jobs:
2418
changes:
2519
runs-on: ubuntu-latest-low
@@ -53,8 +47,7 @@ jobs:
5347
phpunit-oci:
5448
runs-on: ubuntu-latest
5549

56-
needs: changes
57-
if: ${{ needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh' }}
50+
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
5851

5952
strategy:
6053
fail-fast: false
@@ -130,17 +123,3 @@ jobs:
130123
- name: Run repair steps
131124
run: |
132125
./occ maintenance:repair --include-expensive
133-
134-
summary:
135-
permissions:
136-
contents: none
137-
runs-on: ubuntu-latest-low
138-
needs: [changes, phpunit-oci]
139-
140-
if: always()
141-
142-
name: phpunit-oci-summary
143-
144-
steps:
145-
- name: Summary status
146-
run: if ${{ needs.changes.outputs.src != 'false' && needs.phpunit-oci.result != 'success' }}; then exit 1; fi

0 commit comments

Comments
 (0)