Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SemVer compatibility checks to CI #445

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Jan 25, 2025

Even small changes to item visibility during fixes might introduce
SemVer violations (see
https://doc.rust-lang.org/cargo/reference/semver.html#change-categories
for a list of changs that would be considered major/minor).

To make sure we don't accidentally introduce such changes, we here add a
new semver-checks CI job that utilizes cargo-semver-checks
(https://github.com/obi1kenobi/cargo-semver-checks), and have it run on
any push or pull requests.

We also bump the version number on main to the next-planned minor release
(mod +git metadata tag). This aligns what we're planning to do in LDK
(see lightningdevkit/rust-lightning#3546) and
allows us to run SemVer checks on PRs towards main.

tnull added 2 commits January 25, 2025 11:47
Even small changes to item visibility during fixes might introduce
SemVer violations (see
https://doc.rust-lang.org/cargo/reference/semver.html#change-categories
for a list of changs that would be considered major/minor).

To make sure we don't accidentally introduce such changes, we here add a
new semver-checks CI job that utilizes cargo-semver-checks
(https://github.com/obi1kenobi/cargo-semver-checks), and have it run on
any push or pull requests.
We bump the version number on `main` to the next-planned minor release
(mod `+git` metadata tag). This aligns what we're planning to do in LDK
(see lightningdevkit/rust-lightning#3546) and
allows us to run SemVer checks on PRs towards `main`.
@tnull tnull merged commit 3f027cc into lightningdevkit:main Jan 27, 2025
10 of 14 checks passed
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