-
Notifications
You must be signed in to change notification settings - Fork 407
Add SemVer compatibility checks to CI #3560
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: SemVer checks | ||
on: | ||
push: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we filter it to just when the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume you don't mean here but We could potentially see whether it's possible to only apply it on PRs towards main that have the label but I don't really see the argument for the complication as running it on every PR shouldn't be that costly to begin with. But, if we really want to do it, I'd prefer to first land this PR and assert everything is robustly working as intended before introducing further complications, see below. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I meant by running via something like this:
We can check for either condition, we can write code in
Just annoying cause it'll always be failing, but if we filter on the label then it should only fail when its actually something worth investigating.
Sure, that's fine. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Why would it always be failing? It doesn't fail in either case, if the changes aren't breaking compared to the baseline. On main (where we bumped to |
||
branches-ignore: | ||
- master | ||
pull_request: | ||
branches-ignore: | ||
- master | ||
|
||
jobs: | ||
semver-checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout source code | ||
uses: actions/checkout@v4 | ||
- name: Install Rust stable toolchain | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable | ||
rustup override set stable | ||
- name: Check SemVer with default features | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
feature-group: default-features | ||
- name: Check SemVer *without* default features | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
feature-group: only-explicit-features | ||
- name: Check lightning-background-processor SemVer | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
package: lightning-background-processor | ||
feature-group: only-explicit-features | ||
features: futures | ||
- name: Check lightning-block-sync SemVer | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
package: lightning-block-sync | ||
feature-group: only-explicit-features | ||
features: rpc-client,rest-client | ||
- name: Check lightning-transaction-sync electrum SemVer | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
manifest-path: lightning-transaction-sync/Cargo.toml | ||
feature-group: only-explicit-features | ||
features: electrum | ||
- name: Check lightning-transaction-sync esplora-blocking SemVer | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
manifest-path: lightning-transaction-sync/Cargo.toml | ||
feature-group: only-explicit-features | ||
features: esplora-blocking | ||
- name: Check lightning-transaction-sync esplora-async SemVer | ||
uses: obi1kenobi/cargo-semver-checks-action@v2 | ||
with: | ||
manifest-path: lightning-transaction-sync/Cargo.toml | ||
feature-group: only-explicit-features | ||
features: esplora-async |
Uh oh!
There was an error while loading. Please reload this page.