Skip to content

ci: check semver compatibility - #147

Merged
brndnmtthws merged 1 commit into
mainfrom
brndnmtthws/ci/semver-checks
Jul 15, 2026
Merged

ci: check semver compatibility#147
brndnmtthws merged 1 commit into
mainfrom
brndnmtthws/ci/semver-checks

Conversation

@brndnmtthws

Copy link
Copy Markdown
Owner

Summary

Add cargo-semver-checks to the normal build-and-test workflow so API compatibility is checked before release tags are created.

User Impact

SemVer-incompatible public API changes will fail regular pull request CI according to the version already declared in Cargo.toml, giving maintainers feedback before the tag-triggered publish workflow runs.

Root Cause

The existing CI validates builds, tests, features, MSRV, documentation, and dependencies, but it does not compare the current public API with the latest published crate. The first release-specific validation currently happens after a tag is pushed.

Fix

Add a standalone semver compatibility job that installs cargo-semver-checks with the stable Rust toolchain and runs cargo semver-checks --verbose on pushes to main and pull requests targeting main.

Validation

  • mise x actionlint@1.7.12 shellcheck@0.11.0 -- actionlint .github/workflows/build-and-test.yml
  • git diff --check HEAD^
  • cargo semver-checks --verbose against published dryoc 0.9.0 and current 1.0.0

@netlify

netlify Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploy Preview for dryoc-docs ready!

Name Link
🔨 Latest commit 12a5c1b
🔍 Latest deploy log https://app.netlify.com/projects/dryoc-docs/deploys/6a576fa3448d2800081d6cda
😎 Deploy Preview https://deploy-preview-147--dryoc-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@brndnmtthws
brndnmtthws marked this pull request as ready for review July 15, 2026 11:32
Copilot AI review requested due to automatic review settings July 15, 2026 11:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@brndnmtthws
brndnmtthws merged commit dd9e59b into main Jul 15, 2026
33 checks passed
@brndnmtthws
brndnmtthws deleted the brndnmtthws/ci/semver-checks branch July 15, 2026 11:35
@codecov

codecov Bot commented Jul 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.47%. Comparing base (a603c72) to head (12a5c1b).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage   82.47%   82.47%           
=======================================
  Files          58       58           
  Lines        4427     4427           
=======================================
  Hits         3651     3651           
  Misses        776      776           

☔ 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.

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.

2 participants