From 28ff77ceac44efc0ceefbb3e88205142e4281aec Mon Sep 17 00:00:00 2001 From: Owen Leung Date: Wed, 18 Oct 2023 21:36:00 +0800 Subject: [PATCH 1/2] CI: add semver-check --- .github/workflows/ci.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f87f3b79..205d4862c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,12 +65,21 @@ jobs: components: rustfmt - run: cargo fmt --check + semver-checks: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: obi1kenobi/cargo-semver-checks-action@v2.1 + with: + rust-toolchain: stable + feature-group: all-features + # Used to signal to branch protections that all other jobs have succeeded. all-jobs-succeed: name: All checks succeeded if: success() runs-on: ubuntu-latest - needs: [check, msrv, test, check-format, doc] + needs: [check, msrv, test, check-format, doc, semver-checks] steps: - name: Mark the job as successful run: exit 0 From bf579b85445c9f6eb83354d4abe26ebfa71b7128 Mon Sep 17 00:00:00 2001 From: Owen Leung Date: Fri, 19 Jan 2024 17:20:01 +0800 Subject: [PATCH 2/2] remove semver-check from all-jobs-succeed --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 205d4862c..9361ee62b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -79,7 +79,7 @@ jobs: name: All checks succeeded if: success() runs-on: ubuntu-latest - needs: [check, msrv, test, check-format, doc, semver-checks] + needs: [check, msrv, test, check-format, doc] steps: - name: Mark the job as successful run: exit 0