From 5f2c51d4662e7759b88d613b730b15cf5b5cca9e Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Thu, 2 May 2024 12:06:39 +0200 Subject: [PATCH] ci: move cargo check to lint job --- .github/workflows/rust.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ed5acb2..a525f3b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -67,9 +67,6 @@ jobs: - name: Run cargo test run: cargo test --all-features - - name: Run cargo check - run: cargo check --all-features - linting: runs-on: depot-ubuntu-22.04-4 @@ -89,12 +86,15 @@ jobs: ~/.cargo/git target key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }} - + + - name: Check format + run: cargo fmt -- --check + - name: Run clippy run: cargo clippy -- -D warnings - - name: Check format - run: cargo fmt -- --check + - name: Run cargo check + run: cargo check --all-features shear: runs-on: depot-ubuntu-22.04-4