From 920fc2f5f62ee4e244ab1925f2427b7f12ee133a Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Thu, 26 Oct 2023 10:52:23 -0400 Subject: [PATCH] ci: check semver compat (#226) 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. --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a8a6e12..7c67250 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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