From 38aee9f74968f2fedaf25c7a327b701f4f6e9f3d Mon Sep 17 00:00:00 2001 From: Waleed Khan Date: Wed, 23 Feb 2022 20:14:47 -0800 Subject: [PATCH] ci: add Clippy stable check Currently, `main` has Clippy lint warnings on stable, but not on nightly. --- .github/workflows/build.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3e8027e8e..146f473fe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,23 @@ jobs: env: RUST_BACKTRACE: 1 - clippy: + clippy-stable: + name: Clippy check (stable) + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + override: true + - run: rustup component add clippy + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features --workspace + + clippy-nightly: name: Clippy check (nightly) runs-on: ubuntu-latest steps: