Skip to content

Commit

Permalink
CI: add cargo-semver-checks
Browse files Browse the repository at this point in the history
This commit adds `cargo-semver-checks`[0] to CI. This tool helps detect
when semver incompatible changes are being made without properly
incrementing the `Cargo.toml` version.

Note that this is necessary, but not sufficient, for ensuring semver
compatibility. This tool is helpful, but not perfect, and can miss
some breakages.

[0]: https://github.com/obi1kenobi/cargo-semver-checks
  • Loading branch information
cpu committed Nov 1, 2023
1 parent df1f667 commit dda6554
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ jobs:
working-directory: rcgen/
run: cargo check-external-types --all-features

semver:
name: Check semver compatibility
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Check semver
uses: obi1kenobi/cargo-semver-checks-action@v2

build-windows:
runs-on: windows-latest
env:
Expand Down

0 comments on commit dda6554

Please sign in to comment.