From e047c6d64dd8b10ab4e487fe24af8a846f1914ac Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:14:02 +0100 Subject: [PATCH] Add diff check in CI --- .github/workflows/rust-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust-tests.yml b/.github/workflows/rust-tests.yml index 64e037b57..c34527a6b 100644 --- a/.github/workflows/rust-tests.yml +++ b/.github/workflows/rust-tests.yml @@ -38,7 +38,9 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Build and Test working-directory: bindings/rust - run: cargo test + run: cargo test --feature generate_bindings + - name: Check that bindings are up to date + run: git diff --exit-code bindings/rust/src/bindings/generated.rs - name: Benchmark working-directory: bindings/rust run: cargo bench