diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01d770f50..9063311bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,12 +57,13 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + - uses: taiki-e/install-action@just - uses: dtolnay/rust-toolchain@stable + - uses: taiki-e/install-action@nextest - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - - run: cargo test --workspace --doc - - run: cargo test --all-features --workspace --doc + - run: just test-docs wasm-unknown: runs-on: ubuntu-latest @@ -129,6 +130,7 @@ jobs: timeout-minutes: 30 steps: - uses: actions/checkout@v4 + - uses: taiki-e/install-action@just - uses: dtolnay/rust-toolchain@master with: toolchain: stable @@ -136,9 +138,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: cache-on-failure: true - - run: cargo +stable clippy --workspace --all-targets --all-features - env: - RUSTFLAGS: -D warnings + - run: just clippy docs: runs-on: ubuntu-latest diff --git a/Justfile b/Justfile index 29a0d89b3..cbdd25963 100644 --- a/Justfile +++ b/Justfile @@ -19,14 +19,17 @@ test: # Test the Rust documentation test-docs: - cargo test --doc --all --locked + cargo test --doc --all # Lint the workspace for all available targets lint: lint-native lint-docs # Lint the workspace -lint-native: fmt-check lint-docs - cargo +nightly clippy --workspace --all --all-features --all-targets -- -D warnings +lint-native: fmt-check lint-docs clippy + +# Checks the workspace with clippy +clippy: + cargo +stable clippy --workspace --all-features --all-targets -- -D warnings # Check the formatting of the workspace fmt-check: diff --git a/deny.toml b/deny.toml index 7d37fffaa..3833b3561 100644 --- a/deny.toml +++ b/deny.toml @@ -23,6 +23,7 @@ allow = [ "ISC", "Unicode-DFS-2016", "Unlicense", + "Unicode-3.0", "MPL-2.0", "Zlib", # https://github.com/briansmith/ring/issues/902