@@ -174,6 +174,76 @@ tasks:
174174 COMPOSE_ARGS : run --rm prettier '**/*.{yml,yaml}' --check --no-error-on-unmatched-pattern
175175 silent : true
176176
177+ # Composer checks (mirrors composer.yaml CI)
178+
179+ composer:check :
180+ desc : Validate, normalize, and audit composer
181+ cmds :
182+ - task : compose
183+ vars :
184+ COMPOSE_ARGS : exec phpfpm composer validate --strict
185+ - task : compose
186+ vars :
187+ COMPOSE_ARGS : exec phpfpm composer normalize --dry-run
188+ - task : compose
189+ vars :
190+ COMPOSE_ARGS : exec phpfpm composer audit
191+
192+ # Analysis
193+
194+ analysis:php :
195+ aliases : [analyze:php]
196+ desc : Run PHPStan static analysis
197+ cmds :
198+ - task : compose
199+ vars :
200+ COMPOSE_ARGS : exec phpfpm vendor/bin/phpstan
201+ silent : true
202+
203+ # Test matrix (mirrors pr.yaml CI jobs)
204+
205+ test:matrix :
206+ desc : Run full test matrix (tests, schema validation, fixtures, assets)
207+ cmds :
208+ - task : tests
209+ - task : test:doctrine-schema
210+ - task : test:fixtures
211+ - task : test:build-assets
212+
213+ test:doctrine-schema :
214+ desc : Validate Doctrine schema against database
215+ cmds :
216+ - task : console
217+ vars :
218+ CONSOLE_ARGS : doctrine:schema:validate
219+
220+ test:fixtures :
221+ desc : Verify fixtures load successfully
222+ cmds :
223+ - task : console
224+ vars :
225+ CONSOLE_ARGS : hautelook:fixtures:load --no-interaction
226+
227+ test:build-assets :
228+ desc : Verify frontend assets compile
229+ cmds :
230+ - task : compose
231+ vars :
232+ COMPOSE_ARGS : run --rm node yarn install
233+ - task : compose
234+ vars :
235+ COMPOSE_ARGS : run --rm node yarn build
236+
237+ # CI
238+
239+ pr:actions :
240+ desc : Run all CI checks locally
241+ cmds :
242+ - task : composer:check
243+ - task : coding-standards:check
244+ - task : analyze:php
245+ - task : test:matrix
246+
177247 api:spec:export :
178248 desc : Export API specification
179249 cmds :
0 commit comments