Skip to content

Commit 8cd0de9

Browse files
committed
chore: enhance CI workflow for rust 🚀
- Prevent clippy warnings by denying them - Check for formatting issues with cargo fmt
1 parent 1f3bef5 commit 8cd0de9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# File Created: 2025-03-05 11:10:40
1010
#
1111
# Modified By: mingcheng ([email protected])
12-
# Last Modified: 2025-03-05 11:12:03
12+
# Last Modified: 2025-03-05 11:40:19
1313
##
1414

1515
name: Cargo Build & Test
@@ -34,7 +34,7 @@ jobs:
3434
steps:
3535
- uses: actions/checkout@v4
3636
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
37-
- run: cargo clippy -- -D warnings
38-
- run: cargo fmt --all -- --check
37+
- run: rustup component add clippy && cargo clippy -- -D warnings
38+
- run: rustup component add rustfmt && cargo fmt --all -- --check
3939
- run: cargo build --verbose
4040
- run: cargo test --verbose

0 commit comments

Comments
 (0)