diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9415780..59ee357 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,7 +26,9 @@ jobs: fetch-depth: 0 - uses: dtolnay/rust-toolchain@stable - uses: Swatinem/rust-cache@v2 - + - uses: taiki-e/install-action@v2 + with: + tool: cargo-deny - uses: actions/setup-python@v5 with: python-version: 3.x diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bfe0c83..8151ea0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,10 +39,17 @@ repos: args: [--all-targets, --all-features, "--", "-D", "warnings"] - id: build - id: test - - repo: https://github.com/EmbarkStudios/cargo-deny - rev: 0.14.24 + - repo: local hooks: - id: cargo-deny + name: check Cargo dependencies + description: check Cargo dependencies + entry: cargo-deny + language: system + types: [file, toml] + files: Cargo\.(toml|lock) + pass_filenames: false + args: ["--all-features", "check"] - repo: https://github.com/crate-ci/typos rev: v1.22.0 hooks: