mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-05-01 00:31:09 +00:00
ci,contrib: check unused deps via cargo-machete
This commit is contained in:
parent
0bfdad3877
commit
71c5f038fa
2 changed files with 8 additions and 1 deletions
3
.github/workflows/ci.yaml
vendored
3
.github/workflows/ci.yaml
vendored
|
@ -37,6 +37,9 @@ jobs:
|
||||||
- name: Rustdoc
|
- name: Rustdoc
|
||||||
run: cargo doc --workspace --no-deps
|
run: cargo doc --workspace --no-deps
|
||||||
|
|
||||||
|
- name: Unused dependencies
|
||||||
|
uses: bnjbvr/cargo-machete@v0.7.0
|
||||||
|
|
||||||
- name: Typos
|
- name: Typos
|
||||||
uses: crate-ci/typos@v1.26.0
|
uses: crate-ci/typos@v1.26.0
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
typos
|
|
||||||
cargo fmt -- --check
|
cargo fmt -- --check
|
||||||
fd -e nix | xargs nixfmt --check
|
fd -e nix | xargs nixfmt --check
|
||||||
|
if ! out="$(cargo machete 2>/dev/null)"; then
|
||||||
|
echo "$out"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
typos
|
||||||
|
|
Loading…
Add table
Reference in a new issue