CI: Check for API changes

Add a job to run the `contrib/check-for-api-changes.sh` script in CI.
This commit is contained in:
Tobin C. Harding 2024-03-27 11:13:44 +11:00
parent 53d34d5ee0
commit c61db1b44f
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 15 additions and 0 deletions

View File

@ -116,3 +116,18 @@ jobs:
env: env:
DO_WASM: true DO_WASM: true
run: ./contrib/test.sh 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