Skip to content

Commit 9c03c5c

Browse files
committed
add rust fmt and clippy to workflow
1 parent 25ad1d3 commit 9c03c5c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/rust.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- run: sudo apt-get update && sudo apt-get install -y libclang-dev libgtk-3-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev && sudo apt-get install libudev-dev && cargo install cargo-bundle
19-
- name: Build
20-
run: cargo build --verbose
19+
- name: Check
20+
run: cargo check --verbose
21+
- name: Format
22+
run: cargo fmt --all -- --check --verbose
23+
- name: Clippy
24+
run: cargo clippy -- -D warnings --verbose
2125
- name: Run tests
2226
run: cargo test --verbose

0 commit comments

Comments
 (0)