From 478a895cf010e08bb4028c1b535ee653e3988a8f Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Tue, 11 Jul 2023 10:43:38 -0400 Subject: ci: add a cargo-semver-checks action. This commit updates the `build.yml` GitHub actions workflow to additionally include a step that checks semver compatibility w/ cargo-semver-checks[0]. Notably this check passing is necessary but not sufficient for knowing that we're maintaining semver: if this tool produces a finding we know we aren't matching semver, but if it doesn't, we may still be breaking semver in a way the tool can't detect. [0]: https://github.com/obi1kenobi/cargo-semver-checks --- .github/workflows/build.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to '.github') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cdb65868..774d04e1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -234,6 +234,18 @@ jobs: uses: taiki-e/install-action@cross - run: cross build --target i686-unknown-linux-gnu + semver: + name: Check semver compatibility + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Check semver + uses: obi1kenobi/cargo-semver-checks-action@v2 + format: name: Format runs-on: ubuntu-latest -- cgit v1.2.3-70-g09d2