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