From d8bf54167b51222043e79cf21db4c7eee09f7916 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Fri, 29 Mar 2024 14:01:48 +0100 Subject: [PATCH] add fmt and clippy check --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 46c46d4..aaf1f63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,6 +18,8 @@ jobs: run: | cd host cargo check + cargo fmt --check + cargo clippy - name: Test run: | @@ -25,4 +27,4 @@ jobs: cargo test -- --nocapture - name: Build examples - run: for i in nrf-sdc; do pushd examples/$i; cargo build --release; popd; done; + run: for i in nrf-sdc; do pushd examples/$i; cargo fmt --check && cargo clippy && cargo build --release; popd; done;