Skip to content

Commit a24593e

Browse files
committed
chore: Group phpunit runs
Assisted-by: ClaudeCode:claude-opus-5 Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
1 parent 37d0b28 commit a24593e

11 files changed

Lines changed: 133 additions & 500 deletions

.github/workflows/phpunit-kvstore.yml

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,18 @@
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

1915
jobs:
20-
changes:
21-
runs-on: ubuntu-latest-low
22-
23-
outputs:
24-
src: ${{ steps.changes.outputs.src}}
25-
26-
steps:
27-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
28-
id: changes
29-
continue-on-error: true
30-
with:
31-
filters: |
32-
src:
33-
- '.github/workflows/phpunit-kvstore.yml'
34-
- '3rdparty/**'
35-
- '**/appinfo/**'
36-
- '**.php'
37-
3816
phpunit-kvstore:
3917
runs-on: ubuntu-latest
4018

41-
needs: changes
42-
if: needs.changes.outputs.src != 'false'
43-
4419
strategy:
4520
fail-fast: false
4621
matrix:
@@ -125,17 +100,3 @@ jobs:
125100
if: always()
126101
run: |
127102
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 & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,15 @@
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:
24-
changes:
25-
runs-on: ubuntu-latest-low
26-
permissions:
27-
contents: read
28-
pull-requests: read
29-
30-
outputs:
31-
src: ${{ steps.changes.outputs.src}}
32-
33-
steps:
34-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
35-
id: changes
36-
continue-on-error: true
37-
with:
38-
filters: |
39-
src:
40-
- '.github/workflows/**'
41-
- '3rdparty/**'
42-
- '**/appinfo/**'
43-
- '**/lib/**'
44-
- '**/templates/**'
45-
- '**/tests/**'
46-
- 'vendor/**'
47-
- 'vendor-bin/**'
48-
- '.php-cs-fixer.dist.php'
49-
- 'composer.json'
50-
- 'composer.lock'
51-
- '**.php'
52-
5318
phpunit-mariadb:
5419
runs-on: ubuntu-latest
5520

56-
needs: changes
57-
if: needs.changes.outputs.src != 'false'
58-
5921
strategy:
6022
fail-fast: false
6123
matrix:
@@ -129,17 +91,3 @@ jobs:
12991
env:
13092
DB_ROOT_USER: root
13193
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 & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,15 @@
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:
24-
changes:
25-
runs-on: ubuntu-latest-low
26-
27-
outputs:
28-
src: ${{ steps.changes.outputs.src}}
29-
30-
steps:
31-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
32-
id: changes
33-
continue-on-error: true
34-
with:
35-
filters: |
36-
src:
37-
- '.github/workflows/**'
38-
- '3rdparty/**'
39-
- '**/appinfo/**'
40-
- '**/lib/**'
41-
- '**/templates/**'
42-
- '**/tests/**'
43-
- 'vendor/**'
44-
- 'vendor-bin/**'
45-
- '.php-cs-fixer.dist.php'
46-
- 'composer.json'
47-
- 'composer.lock'
48-
- '**.php'
49-
5018
phpunit-memcached:
5119
runs-on: ubuntu-latest
5220

53-
needs: changes
54-
if: needs.changes.outputs.src != 'false'
55-
5621
strategy:
5722
fail-fast: false
5823
matrix:
@@ -105,17 +70,3 @@ jobs:
10570
if: always()
10671
run: |
10772
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 & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -9,50 +9,15 @@
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:
24-
changes:
25-
runs-on: ubuntu-latest-low
26-
27-
outputs:
28-
src: ${{ steps.changes.outputs.src }}
29-
30-
steps:
31-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
32-
id: changes
33-
continue-on-error: true
34-
with:
35-
filters: |
36-
src:
37-
- '.github/workflows/**'
38-
- '3rdparty/**'
39-
- '**/appinfo/**'
40-
- '**/lib/**'
41-
- '**/templates/**'
42-
- '**/tests/**'
43-
- 'vendor/**'
44-
- 'vendor-bin/**'
45-
- '.php-cs-fixer.dist.php'
46-
- 'composer.json'
47-
- 'composer.lock'
48-
- '**.php'
49-
5018
phpunit-mysql:
5119
runs-on: ubuntu-latest
5220

53-
needs: changes
54-
if: needs.changes.outputs.src != 'false'
55-
5621
strategy:
5722
fail-fast: false
5823
matrix:
@@ -176,17 +141,3 @@ jobs:
176141
if: always()
177142
run: |
178143
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 & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -9,53 +9,15 @@
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:
24-
changes:
25-
runs-on: ubuntu-latest-low
26-
permissions:
27-
contents: read
28-
pull-requests: read
29-
30-
outputs:
31-
src: ${{ steps.changes.outputs.src }}
32-
33-
steps:
34-
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
35-
id: changes
36-
continue-on-error: true
37-
with:
38-
filters: |
39-
src:
40-
- '.github/workflows/**'
41-
- '3rdparty/**'
42-
- '**/appinfo/**'
43-
- '**/lib/**'
44-
- '**/templates/**'
45-
- '**/tests/**'
46-
- 'vendor/**'
47-
- 'vendor-bin/**'
48-
- '.php-cs-fixer.dist.php'
49-
- 'composer.json'
50-
- 'composer.lock'
51-
- '**.php'
52-
5318
phpunit-mysql:
5419
runs-on: ubuntu-latest
5520

56-
needs: changes
57-
if: needs.changes.outputs.src != 'false'
58-
5921
strategy:
6022
fail-fast: false
6123
matrix:
@@ -134,17 +96,3 @@ jobs:
13496
if: always()
13597
run: |
13698
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

0 commit comments

Comments
 (0)