From b7a4b9da2c0bab20c00b50b12c7cfd1c5f05497c Mon Sep 17 00:00:00 2001 From: Snowiiii Date: Tue, 20 Aug 2024 13:20:28 +0200 Subject: [PATCH] CI: Check Linting and Format --- .github/workflows/rust.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a3a3f2cd9..57acdd34d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,10 +1,10 @@ -name: Cargo Build & Test +name: Cargo Build, Test, and Linting on: push: pull_request: -env: +env: CARGO_TERM_COLOR: always jobs: @@ -14,9 +14,13 @@ jobs: strategy: matrix: toolchain: - - stable + - stable + steps: - - uses: actions/checkout@v4 - - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} - - run: cargo build --verbose - - run: cargo test --verbose \ No newline at end of file + - uses: actions/checkout@v4 + + - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} + - run: cargo build --verbose + - run: cargo test --verbose + - run: cargo clippy --all-targets --all-features --no-default-features -- -D warnings + - run: cargo fmt --check \ No newline at end of file