From 3d099288f71b59d4816f88faef2342d60d52e442 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 12 Jan 2023 20:03:45 +0100 Subject: ci: run Clippy in workspace & with all features --- .circleci/config.yml | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eb18dd7..09c951a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -71,7 +71,7 @@ jobs: --out Xml bash <(curl -s https://codecov.io/bash) - lints: + lints-stable: docker: - image: cimg/rust:1.63.0 steps: @@ -83,7 +83,32 @@ jobs: - cargo-cache - run: name: Run Clippy - command: cargo clippy + command: cargo clippy --workspace + - save_cache: + name: Save cache of Cargo data + key: cargo-cache + paths: + - ~/.cargo + + lints-nightly: + docker: + - image: cimg/rust:1.63.0 + steps: + - checkout + - run: cargo --version + - run: + name: Install Rust nightly + command: rustup install nightly + - run: + name: Setting Rust nightly as default + command: rustup default nightly + - restore_cache: + name: Restore cache of Cargo data + keys: + - cargo-cache + - run: + name: Run Clippy with all features enabled + command: cargo clippy --workspace --all-features - save_cache: name: Save cache of Cargo data key: cargo-cache @@ -115,6 +140,7 @@ workflows: checks: jobs: - - lints + - lints-stable + - lints-nightly - code-style -- cgit v1.2.3-18-g5258