diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c028a2c..8e1df3e4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: - name: Install toolchain uses: dtolnay/rust-toolchain@nightly with: - components: rustfmt, clippy + components: rustfmt - name: Rust cache uses: Swatinem/rust-cache@v2 @@ -61,5 +61,10 @@ jobs: - name: Check format run: cargo +nightly fmt --all --check + # TODO remove after `clap` is fixed + - name: Install stable clippy + run: rustup component add clippy # --toolchain 1.67-x86_64-unknown-linux-gnu + - name: Check clippy - run: cargo +nightly clippy --all-targets --all-features --all --verbose -- -D warnings + # TODO restore +nightly after fixing this: https://github.com/clap-rs/clap/issues/4733 + run: cargo clippy --all-targets --all-features --all --verbose -- -D warnings diff --git a/justfile b/justfile index a8499f89..01d5d878 100644 --- a/justfile +++ b/justfile @@ -15,7 +15,8 @@ test: fmt: cargo +nightly fmt --all lint: fmt validate-example-config - cargo +nightly clippy --all-targets --all-features --all + # TODO restore +nightly after fixing this: https://github.com/clap-rs/clap/issues/4733 + cargo clippy --all-targets --all-features --all build: cargo build --all-targets --all-features --all run-ci: lint build test run-integration-tests