From fc8e6d10e8e96c9e74962e80944405315b5e7af8 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Sun, 10 May 2026 20:34:46 +0700 Subject: [PATCH] ci: add cargo-semver-checks to verify API compatibility Check for breaking changes against all features on tags and manual triggers to ensure semantic versioning compliance. --- .github/workflows/semver.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/semver.yml diff --git a/.github/workflows/semver.yml b/.github/workflows/semver.yml new file mode 100644 index 0000000..2274368 --- /dev/null +++ b/.github/workflows/semver.yml @@ -0,0 +1,27 @@ +name: Semver + +on: + workflow_dispatch: + push: + tags: + - "v*.*.*" + +permissions: + contents: read + +jobs: + semver: + name: cargo-semver-checks + runs-on: ubuntu-latest + timeout-minutes: 20 + + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + persist-credentials: false + + - name: Check semver compatibility + uses: obi1kenobi/cargo-semver-checks-action@v2 + with: + feature-group: all-features