Skip to content

Commit

Permalink
ci: check semver compat (#226)
Browse files Browse the repository at this point in the history
Use `cargo-semver-checks-action` in CI to try and catch semver breaking
changes being made without the correct `Cargo.toml` version update.

Note: not perfect - this check passing is necessary but not sufficient
for maintaining semver.
  • Loading branch information
cpu authored Oct 26, 2023
1 parent 5ab99d9 commit 920fc2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ jobs:
- name: Check MSRV
run: cargo check --lib --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

docs:
name: Check for documentation errors
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 920fc2f

Please sign in to comment.