From 4a3ccae1677c576338d436600ca67143037309d9 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sun, 17 Sep 2023 10:37:47 -0400 Subject: [PATCH] build: enforce clippy Co-authored-by: warren2k <846021+warren2k@users.noreply.github.com> --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d90274ea4..ea5e89b5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,9 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - - run: RUSTFLAGS="--deny warnings" cargo check ${{ matrix.features }} + with: + components: ${{ matrix.rust == 'msrv' && 'clippy' || '' }} + - run: RUSTFLAGS="--deny warnings" cargo ${{ matrix.rust == 'msrv' && 'clippy' || 'check' }} ${{ matrix.features }} msrv: runs-on: ubuntu-latest