Skip to content

[CI] Run each package's tests in its own job - #418

Merged
loic425 merged 1 commit into
Sylius:mainfrom
loic425:ci/split-tests-per-package
Nov 24, 2026
Merged

loic425 merged 1 commit into
Sylius:mainfrom
loic425:ci/split-tests-per-package

Conversation

@loic425

@loic425 loic425 commented Nov 24, 2026 •

Copy link
Copy Markdown
Member
Q A
Branch? main
Bug fix? no
New feature? no
BC breaks? no
License MIT

Today, one CI job per PHP/Symfony combination runs the app tests, then installs and tests every package one after the other. A failing package hides the next ones, and you have to open the log to know which package broke.

This PR splits the workflow:

  • static-checks keeps the app checks and tests only (ECS, PHPStan, container lint, PHPUnit, French translations suite);
  • a new packages job runs PHPUnit for each package × PHP/Symfony combination (same 5 combinations as before), in src/<Package>, with its own Composer cache. The ShadcnAdminUi assets are built only for that package;
  • the BootstrapAdminUi and ShadcnAdminUi JS tests run in their package job (PHP 8.3 / Symfony ^7.4), after composer update, since their package.json points at assets in vendor/.

Jobs now run in parallel and are named after the package, e.g. TwigHooks / PHP 8.3 / Symfony ^7.4.

If some checks are required in the branch protection rules, they need to be updated with the new job names.

@loic425
loic425 force-pushed the ci/split-tests-per-package branch from 9de88e0 to 1191674 Compare November 24, 2026 15:10
@loic425
loic425 merged commit ab87710 into Sylius:main Nov 24, 2026
36 checks passed
@loic425
loic425 deleted the ci/split-tests-per-package branch November 24, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant