ci: run PHPUnit Unit suite on push/PR (PHP 8.1–8.4) - #59
Merged
Conversation
Adds a GitHub Actions workflow that installs Composer deps and runs the Unit testsuite across a PHP 8.1 → 8.4 matrix on every push to main and every pull request. Only the Unit suite runs here — the Feature suite needs a Chromium instance and belongs in a separate workflow. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Library requires PHP 8.2+ (per docs and the resolved symfony/* 7.x lock), so 8.1 fails at composer install. Keep 8.2 → 8.4. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
Le repo n'a actuellement aucun workflow GitHub Actions — les tests unitaires (117 tests, 442 assertions) ne sont donc jamais joués sur les push ni les PR. Seul le Copilot review tourne.
Changement
Ajoute
.github/workflows/tests.yml:mainet toute pull request.fail-fast: falsepour voir toutes les versions en un run.composer installavec cache par version PHP.vendor/bin/phpunit --testsuite Unit.Pourquoi seulement le suite Unit ?
Le
phpunit.xml.distdéclare aussi une suiteFeature, qui exercice probablement Chromium viachrome-php/chrome. Ça mérite son propre workflow (installation du navigateur, gestion des artefacts d'échec, timeout plus large) et je préfère l'ajouter séparément une fois qu'on aura statué sur la stratégie. La suite Unit couvre déjà les 117 tests actuels et n'a aucune dépendance système.🤖 Generated with Claude Code