aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-01-12 20:03:45 +0100
committerHampusM <hampus@hampusmat.com>2023-01-12 20:03:45 +0100
commit3d099288f71b59d4816f88faef2342d60d52e442 (patch)
tree6c23a619b821d612270f9863c829b4e41576ed6e
parentb6f2f52765f35f9f6e76d2dc23404cf35eb97908 (diff)
ci: run Clippy in workspace & with all features
-rw-r--r--.circleci/config.yml32
1 files 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