Skip to content

CI: add a Roave backwards-compatibility check on pull requests - #23

Merged
loevgaard merged 1 commit into
1.xfrom
ci/bc-check
Aug 17, 2026
Merged

CI: add a Roave backwards-compatibility check on pull requests#23
loevgaard merged 1 commit into
1.xfrom
ci/bc-check

Conversation

@loevgaard

@loevgaard loevgaard commented Aug 17, 2026

Copy link
Copy Markdown
Member

Adds .github/workflows/backwards-compatibility-check.yaml, mirroring Setono/SyliusPluginSkeleton's: on every pull request, roave/backward-compatibility-check --from=origin/<base> compares the PR's public API against its base branch and fails on breaking changes.

Two deliberate deviations from the skeleton:

  • PHP 8.4 instead of 8.1 — the current tool releases (8.19+) require PHP >= 8.4; on 8.1 Composer would resolve an ancient 7.x. The tool analyses our >= 8.1 sources fine.
  • actions/checkout@v6, matching build.yaml.

CLAUDE.md documents the gate. The check runs on this PR itself (pull_request workflows are taken from the merge ref); the currently open #16/#17/#19/#20 will only get it on their next push — they're additive anyway, and #14/#18 (already merged) carried the small, documented interface changes.

Mirrors Setono/SyliusPluginSkeleton's workflow: compares the PR against its
base branch with roave/backward-compatibility-check and fails on BC breaks.
Runs on PHP 8.4 because the current tool releases require >= 8.4 (it analyses
our >= 8.1 sources fine); the checkout uses fetch-depth 0 so the base ref is
available. CLAUDE.md documents the gate.
@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.02%. Comparing base (fece712) to head (7ab0908).

Additional details and impacted files
@@            Coverage Diff            @@
##                1.x      #23   +/-   ##
=========================================
  Coverage     99.02%   99.02%           
  Complexity      190      190           
=========================================
  Files            26       26           
  Lines           511      511           
=========================================
  Hits            506      506           
  Misses            5        5           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@loevgaard
loevgaard merged commit d94be92 into 1.x Aug 17, 2026
36 checks passed
@loevgaard
loevgaard deleted the ci/bc-check branch August 17, 2026 11:25
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