From dda65548b881da342293a9409f9b4fa5a75773e9 Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Mon, 30 Oct 2023 11:48:00 -0400 Subject: [PATCH] CI: add cargo-semver-checks 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 --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9c7840c6..2d3fd858 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: