From ca471b2e18b874e3b0c0c96fcefc9ab1815ff6f3 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 1 May 2022 09:23:37 +0100 Subject: [PATCH] add clippy lint CI target --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5be269fef5..d5b77a785e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,3 +73,20 @@ jobs: - name: Execute tests for all crates in the workspace run: cargo test --all + + clippy: + name: Lint code + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v3 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + components: clippy + + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features --all-targets --all