-
-
Notifications
You must be signed in to change notification settings - Fork 223
169 lines (130 loc) · 6.58 KB
/
validation.yaml
File metadata and controls
169 lines (130 loc) · 6.58 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: Validate
on:
pull_request:
paths:
- 'src/*/src/Bridge/**/*'
- 'src/*/composer.json'
- 'src/ai-bundle/config/options.php'
- 'splitsh.json'
- '.github/workflows/validation.yaml'
- '.github/scripts/validate-bridge-naming.sh'
- '.github/scripts/validate-bridge-splitsh.sh'
- '.github/scripts/validate-bridge-files.sh'
- '.github/scripts/validate-bridge-type.sh'
- '.github/scripts/validate-bridge-deptrac.sh'
- '.github/scripts/validate-dependency-versions.sh'
- 'deptrac.yaml'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
validate_stores:
name: Store Bridges
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Fetch base branch for LICENSE validation
run: git fetch origin ${{ github.base_ref || 'main' }} --depth=1
- name: Validate store bridge naming conventions
run: .github/scripts/validate-bridge-naming.sh store store src/ai-bundle/config/options.php
- name: Validate store bridges are in splitsh.json
run: .github/scripts/validate-bridge-splitsh.sh store
- name: Validate store bridges have required files
run: .github/scripts/validate-bridge-files.sh store
- name: Validate store bridges have correct type
run: .github/scripts/validate-bridge-type.sh store
- name: Validate store bridges are covered in deptrac.yaml
run: .github/scripts/validate-bridge-deptrac.sh store store
validate_tools:
name: Tool Bridges
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Fetch base branch for LICENSE validation
run: git fetch origin ${{ github.base_ref || 'main' }} --depth=1
- name: Validate tool bridge naming conventions
run: .github/scripts/validate-bridge-naming.sh tool agent
- name: Validate tool bridges are in splitsh.json
run: .github/scripts/validate-bridge-splitsh.sh tool agent
- name: Validate tool bridges have required files
run: .github/scripts/validate-bridge-files.sh tool agent
- name: Validate tool bridges have correct type
run: .github/scripts/validate-bridge-type.sh tool agent
- name: Validate tool bridges are covered in deptrac.yaml
run: .github/scripts/validate-bridge-deptrac.sh tool agent
validate_message_stores:
name: Message Store Bridges
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Fetch base branch for LICENSE validation
run: git fetch origin ${{ github.base_ref || 'main' }} --depth=1
- name: Validate message store bridge naming conventions
run: .github/scripts/validate-bridge-naming.sh message-store chat
- name: Validate message store bridges are in splitsh.json
run: .github/scripts/validate-bridge-splitsh.sh message-store chat
- name: Validate message store bridges have required files
run: .github/scripts/validate-bridge-files.sh message-store chat
- name: Validate message store bridges have correct type
run: .github/scripts/validate-bridge-type.sh message-store chat
- name: Validate message store bridges are covered in deptrac.yaml
run: .github/scripts/validate-bridge-deptrac.sh message-store chat
validate_platforms:
name: Platform Bridges
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Fetch base branch for LICENSE validation
run: git fetch origin ${{ github.base_ref || 'main' }} --depth=1
- name: Validate platform bridge naming conventions
run: .github/scripts/validate-bridge-naming.sh platform platform
- name: Validate platform bridges are in splitsh.json
run: .github/scripts/validate-bridge-splitsh.sh platform
- name: Validate platform bridges have required files
run: .github/scripts/validate-bridge-files.sh platform
- name: Validate platform bridges have correct type
run: .github/scripts/validate-bridge-type.sh platform
- name: Validate platform bridges are covered in deptrac.yaml
run: .github/scripts/validate-bridge-deptrac.sh platform platform
validate_mate_bridges:
name: Mate Bridges
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Fetch base branch for LICENSE validation
run: git fetch origin ${{ github.base_ref || 'main' }} --depth=1
- name: Validate Mate bridge naming conventions
run: .github/scripts/validate-bridge-naming.sh mate-extension mate
- name: Validate Mate bridges are in splitsh.json
run: .github/scripts/validate-bridge-splitsh.sh mate
- name: Validate Mate bridges have required files
run: .github/scripts/validate-bridge-files.sh mate
- name: Validate Mate bridges have correct type
run: .github/scripts/validate-bridge-type.sh mate
- name: Validate Mate bridges are covered in deptrac.yaml
run: .github/scripts/validate-bridge-deptrac.sh mate-extension mate
validate_dependency_versions:
name: "Validate ${{ matrix.package }} requires version ${{ matrix.version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- package: phpunit/phpunit
version: "^11.5.53"
- package: phpstan/phpstan
version: "^2.1"
- package: phpstan/phpstan-phpunit
version: "^2.0"
- package: phpstan/phpstan-strict-rules
version: "^2.0"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Validate ${{ matrix.package }} version in all composer.json files
run: .github/scripts/validate-dependency-versions.sh "${{ matrix.package }}" "${{ matrix.version }}"