From 4cffe89eba5c5c8761e0da6a88216663501d25c6 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Thu, 13 Jul 2023 11:36:38 +0100 Subject: [PATCH] added clippy to github actions --- .github/workflows/ci.yml | 8 ++------ .github/workflows/tests.yml | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8acd802..fcf3bef 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,12 +27,8 @@ jobs: run: python3 docs/generate_count_badge.py --check - name: Check formatting run: cargo fmt --check -# TODO: this action doesn't seem to work -# - name: Clippy check -# uses: auguwu/clippy-action@1.1.2 -# with: -# args: --all-features --tests -# token: ${{ secrets.GITHUB_TOKEN }} + - name: Clippy + run: cargo clippy --all-features --tests -- -D warnings - name: Run tests run: cargo test --all-features diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d9f6429..8eba55f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,11 +22,7 @@ jobs: uses: Swatinem/rust-cache@v2 - name: Check formatting run: cargo fmt --check -# TODO: this action doesn't seem to work -# - name: Clippy check -# uses: auguwu/clippy-action@1.1.2 -# with: -# args: --all-features --tests -# token: ${{ secrets.GITHUB_TOKEN }} + - name: Clippy + run: cargo clippy --all-features --tests -- -D warnings - name: Run tests run: cargo test --all-features