From ff98133bbd4502633a5b01fcadcadccccef437e0 Mon Sep 17 00:00:00 2001 From: LoricAndre <57358788+LoricAndre@users.noreply.github.com> Date: Sat, 18 Jul 2026 15:57:01 +0200 Subject: [PATCH] ci: add public-api check (#1124) * ci: add public-api check * test: try pushing an API breaking change * fix: install nightly * test: revert breaking --- .github/workflows/test.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4295b820..1484a898 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -255,6 +255,25 @@ jobs: # Single aggregate status check for branch protection / repository rulesets, # so they don't need to enumerate every matrix leg by name individually. + + public-api: + name: Check for public API breaking changes + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - *checkout + - *toolchain + - *cache + - uses: taiki-e/install-action@v2 + with: + tool: cargo-public-api@0.52 + - run: rustup toolchain install nightly-x86_64-unknown-linux-gnu + name: Install nightly toolchain + - run: cargo public-api diff latest --deny removed --deny changed + name: Run cargo-public-api + + ci-success: name: CI Success if: always()