Skip to content

Commit 4653444

Browse files
authored
Update rust.yml
add clippy check
1 parent 7b62497 commit 4653444

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/rust.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Rust
1+
name: Rust lint, build, test
22

33
on:
44
push:
@@ -8,12 +8,17 @@ on:
88

99
env:
1010
CARGO_TERM_COLOR: always
11+
RUSTFLAGS: "-Dwarnings"
1112

1213
jobs:
13-
build:
14-
14+
clippy_check:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Run Clippy
19+
run: cargo clippy --all-targets --all-features
20+
build-and-test:
1521
runs-on: ubuntu-latest
16-
1722
steps:
1823
- uses: actions/checkout@v3
1924
- name: Build

0 commit comments

Comments
 (0)