From 64a36fe47bbd5142251d0d8d09b7eb9172861278 Mon Sep 17 00:00:00 2001 From: pedro bufulin Date: Mon, 22 Jan 2024 17:12:40 -0300 Subject: [PATCH] ci: cargo fmt, clippy does not error whenw arnings anymore --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c7ca30..a96d200 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,10 +21,15 @@ jobs: - uses: actions/checkout@v3 - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - name: Install Rustfmt + run: rustup component add rustfmt + - name: Check code formatting + run: cargo fmt -- --check + - name: Install Clippy run: rustup component add clippy - name: Run Clippy - run: cargo clippy -- -D warnings + run: cargo clippy - name: Install Protoc run: sudo apt-get update && sudo apt-get install -y protobuf-compiler