Skip to content

Test against lowest and highest dependency versions#16

Merged
marianogoldman merged 1 commit into
mainfrom
ci/test-dependency-range
Jun 21, 2026
Merged

Test against lowest and highest dependency versions#16
marianogoldman merged 1 commit into
mainfrom
ci/test-dependency-range

Conversation

@marianogoldman

Copy link
Copy Markdown
Contributor

What

Add a lowest/highest dependency dimension to the CI matrix so the suite runs against both the floor and the ceiling of the declared Composer constraints, on PHP 8.4 and 8.5 (4 jobs total).

A library's committed composer.lock has no effect on consumers — they resolve from composer.json constraints. So CI should verify the range works, not just the pinned lock. This catches "green on my lock, broken for a consumer on newer (or older) versions within range".

Uses ramsey/composer-install which handles caching and the dependency-versions: lowest|highest input.

Verified locally: the suite passes on --prefer-lowest (illuminate/support 12.0, mercadopago 6.0, ...) on PHP 8.4.

Branch protection

Job names change to PHP <version> (<lowest|highest> deps), so the required status checks on main are updated from PHP 8.4 / PHP 8.5 to the 4 new contexts.

🤖 Generated with Claude Code

A library's committed composer.lock has no effect on consumers, so CI
should verify the declared constraint range rather than one pinned set.
Add a lowest/highest dependency dimension to the matrix (via
ramsey/composer-install) so the floor of each constraint (e.g.
illuminate/support 12.0, mercadopago 6.0) is exercised alongside the
latest resolvable versions.

Job names change to "PHP <version> (<lowest|highest> deps)"; branch
protection required checks are updated to match.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@marianogoldman marianogoldman marked this pull request as ready for review June 21, 2026 12:02
@marianogoldman marianogoldman merged commit b3f46e3 into main Jun 21, 2026
4 checks passed
@marianogoldman marianogoldman deleted the ci/test-dependency-range branch June 21, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant