From d0fe567f90ccdd850720254f081db2e6127c9a96 Mon Sep 17 00:00:00 2001 From: David Derler Date: Sun, 22 Mar 2026 07:09:57 +0100 Subject: [PATCH] New format and lint job & add clippy --- .github/workflows/ci.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e591b10..eb5d927 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: Build and test +name: Run CI tests on: push: @@ -8,18 +8,29 @@ on: env: CARGO_TERM_COLOR: always + RUSTFLAGS: "-Dwarnings" jobs: - build-and-test: - + format_and_lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Update toolchain run: rustup update - name: Format run: cargo fmt --all --check + - name: Clippy + run: cargo clippy --all-targets --all-features + + build_and_test: + needs: format_and_lint + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v6 + - name: Update toolchain + run: rustup update - name: Build run: cargo build --verbose - name: Run tests