-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
121 lines (100 loc) · 3.18 KB
/
Copy pathphpunit.yml
File metadata and controls
121 lines (100 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: MIT
name: PHPUnit
on:
pull_request:
schedule:
- cron: "5 2 * * *"
permissions:
contents: read
concurrency:
group: phpunit-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
# GitHub allows a maximum of 20 reusable workflows per caller
jobs:
changes:
runs-on: ubuntu-latest-low
permissions:
contents: read
pull-requests: read
outputs:
src: ${{ steps.changes.outputs.src }}
resources: ${{ steps.changes.outputs.resources }}
kvstore: ${{ steps.changes.outputs.kvstore }}
steps:
- uses: dorny/paths-filter@ceb8a2b8f2d89434be7ff52d3de7ec3738c5cc9d # v4.0.3
id: changes
continue-on-error: true
with:
filters: |
src:
- '.github/workflows/**'
- '3rdparty/**'
- '**/appinfo/**'
- '**/lib/**'
- '**/templates/**'
- '**/tests/**'
- 'vendor/**'
- 'vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
- '**.php'
resources:
- 'resources/**'
kvstore:
- '.github/workflows/phpunit-kvstore.yml'
- '3rdparty/**'
- '**/appinfo/**'
- '**.php'
mariadb:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-mariadb.yml
memcached:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-memcached.yml
mysql:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-mysql.yml
mysql-sharding:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-mysql-sharding.yml
object-store-primary:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-object-store-primary.yml
oci:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-oci.yml
pgsql:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-pgsql.yml
sqlite:
needs: changes
if: needs.changes.outputs.src != 'false'
uses: ./.github/workflows/phpunit-sqlite.yml
nodb:
needs: changes
if: needs.changes.outputs.src != 'false' || needs.changes.outputs.resources != 'false'
uses: ./.github/workflows/phpunit-nodb.yml
kvstore:
needs: changes
if: needs.changes.outputs.kvstore != 'false'
uses: ./.github/workflows/phpunit-kvstore.yml
summary:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: [changes, mariadb, memcached, mysql, mysql-sharding, object-store-primary, oci, pgsql, sqlite, nodb, kvstore]
if: always()
name: phpunit-summary
steps:
# Skipped jobs are fine, they mean no relevant changes were detected
- name: Summary status
run: if ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}; then exit 1; fi