Skip to content

Commit de71e4a

Browse files
authored
Enhance lint gate with cargo-fmt and cargo-clippy checks
Add installation commands for cargo-fmt and cargo-clippy if not present.
1 parent 8d5d100 commit de71e4a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,13 @@ jobs:
8888

8989
- name: Lint gate
9090
run: |
91+
if ! command -v cargo-fmt &>/dev/null; then
92+
cargo install cargo-fmt || cargo install rustfmt
93+
fi
9194
cargo fmt --all -- --check
95+
if ! command -v cargo-clippy &>/dev/null; then
96+
cargo install cargo-clippy || true
97+
fi
9298
cargo clippy --locked --all-targets --all-features
9399
94100
- name: Security gates

0 commit comments

Comments
 (0)