Skip to content

Commit d2f9aa1

Browse files
committed
fix[rust.yml] load fmt and clippy
1 parent 133f8ae commit d2f9aa1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,24 @@ jobs:
1010
check:
1111
name: Lint & Test
1212
runs-on: ubuntu-latest
13-
13+
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v4
17-
17+
1818
- name: Install Rust
1919
uses: dtolnay/rust-toolchain@stable
20-
20+
21+
- name: Install rustfmt and clippy components
22+
run: |
23+
rustup component add rustfmt
24+
rustup component add clippy
25+
2126
- name: Format Check
2227
run: cargo fmt --all -- --check
23-
28+
2429
- name: Clippy Check
2530
run: cargo clippy --all-targets --all-features -- -D warnings
26-
31+
2732
- name: Run Tests
2833
run: cargo test --all

0 commit comments

Comments
 (0)