From 20bc42df8b853de3b734ef885a88cc69143461c1 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Thu, 10 Oct 2024 11:23:59 -0400 Subject: [PATCH] Run clippy in CI Install Rust stable *after* nightly so that the default is stable. --- .github/workflows/ci.yml | 11 ++++++----- test.sh | 1 + 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2385f1..85e2e48 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,17 +45,18 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install latest stable - uses: dtolnay/rust-toolchain@master - with: - toolchain: stable - - name: Install latest nightly uses: dtolnay/rust-toolchain@master with: toolchain: nightly components: rust-src + - name: Install latest stable + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: clippy + - uses: Swatinem/rust-cache@v2 - name: Install deps diff --git a/test.sh b/test.sh index 385aef5..022e8c9 100755 --- a/test.sh +++ b/test.sh @@ -53,5 +53,6 @@ cargo generate --path "${TEMPLATE_DIR}" -n test -d program_type="${PROG_TYPE}" $ pushd test cargo xtask build cargo xtask build --release +cargo clippy --workspace --all-targets popd exit 0