From fc57e308b110124a27ab5643f495100db668eb12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tau=20G=C3=A4rtli?= Date: Fri, 17 May 2024 21:04:35 +0200 Subject: [PATCH] Split lint into separate job --- .github/workflows/ci.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a634c3c..dbeeef3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,10 +40,17 @@ jobs: if: matrix.min-rust-version - name: Build run: cargo build --all-features - - name: Check format - run: cargo fmt -- --check - name: Docs run: cargo doc --all-features + lint: + runs-on: ubuntu-latest + name: Lint + steps: + - uses: actions/checkout@v4 + - name: Check format + run: cargo fmt -- --check + - name: Run clippy + run: cargo clippy --all-targets --all-features -- --deny warnings test: name: Test strategy: @@ -54,5 +61,3 @@ jobs: - uses: actions/checkout@v4 - name: Run tests run: cargo test --all-features - - name: Run clippy - run: cargo clippy --all-targets --all-features -- --deny warnings