From c61db1b44f690901335db479f1f85eb745102641 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 27 Mar 2024 11:13:44 +1100 Subject: [PATCH] CI: Check for API changes Add a job to run the `contrib/check-for-api-changes.sh` script in CI. --- .github/workflows/rust.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9297ba0..56d4838 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -116,3 +116,18 @@ jobs: env: DO_WASM: true run: ./contrib/test.sh + + API: + name: Check for changes to the public API + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - name: Checkout Crate + uses: actions/checkout@v3 + - name: Checkout Toolchain + uses: dtolnay/rust-toolchain@nightly + - name: Install cargo-public-api + run: cargo install --locked cargo-public-api + - name: Running API checker script + run: ./contrib/check-for-api-changes.sh