Skip to content

ci: test against core main and guard sibling constraints - #83

Merged
imanimanyara merged 2 commits into
mainfrom
ci/sibling-main
Oct 30, 2026
Merged

imanimanyara merged 2 commits into
mainfrom
ci/sibling-main

Conversation

@imanimanyara

Copy link
Copy Markdown
Contributor

Summary

  • tests/Unit/SiblingConstraintsTest.php fails on any ichava/* constraint in require or require-dev that 0.1.0 does not satisfy, and on finding no constraint to check. At release every ichava repository becomes one commit tagged v0.1.0, so 0.1.0 is the only version of any sibling. composer/semver is now a direct dev requirement, since the test imports it.
  • CI tests against ichava/core's main. Every job that installs dependencies (Tests, Pint, PHPStan, Security Audit, Docs shape) runs composer require "ichava/core:dev-main as 0.1.99" --no-update first, prints the commit it resolved, and restores composer.json after the install. The committed constraint does not change, and the tests read it.
  • CHANGELOG [Unreleased] and docs/release.md describe both.

Verification

  • vendor/bin/pest, laranail-pint --test and PHPStan pass locally against core main (8c7b97f); SvgKindTest's kindFor() case runs instead of skipping (0 skipped).
  • Raising the floor to ^0.1.2 makes SiblingConstraintsTest fail; reverted.

At release every ichava repository becomes one commit tagged v0.1.0, so a constraint that excludes 0.1.0 cannot resolve. SiblingConstraintsTest reads require and require-dev and fails on such a constraint, and on finding none to check.
Each job that installs dependencies aliases the siblings' main into the 0.1 line before the install, prints the commits it resolved, and restores composer.json afterwards, so the committed constraints never change and the tests read them.
@imanimanyara
imanimanyara merged commit 33fba92 into main Oct 30, 2026
10 checks passed
@imanimanyara
imanimanyara deleted the ci/sibling-main branch October 30, 2026 18:05
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