From f13ae504e23aaad87597f244d0cf566688f02a02 Mon Sep 17 00:00:00 2001 From: Adrian Groh Date: Fri, 8 Mar 2024 12:01:45 +0100 Subject: [PATCH] Add `cargo clippy` and `cargo fmt` to workflow --- .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 d54fa2f..7f7473e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,21 +2,21 @@ name: Rust on: push: - branches: [ "master" ] pull_request: - branches: [ "master" ] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest - steps: - uses: actions/checkout@v3 + - name: Check formatting + run: cargo fmt -- --check - name: Build - run: cargo build --verbose + run: cargo build + - name: Run clippy + run: cargo clippy -- -D clippy::all --no-deps - name: Run tests - run: cargo test --verbose + run: cargo test