Skip to content

Commit 780b8de

Browse files
committed
add clippy to CI
1 parent ddf6e3c commit 780b8de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,14 @@ jobs:
102102
- run: cargo generate-lockfile && ./ci/run-docker.sh ${{ matrix.target }}
103103
if: matrix.os == 'ubuntu-latest'
104104

105-
rustfmt:
106-
name: Rustfmt
105+
rustfmt-and-clippy:
106+
name: Rustfmt and Clippy
107107
runs-on: ubuntu-latest
108108
steps:
109109
- uses: actions/checkout@v1
110110
with:
111111
submodules: true
112112
- name: Install Rust
113-
run: rustup update stable && rustup default stable && rustup component add rustfmt
113+
run: rustup update stable && rustup default stable && rustup component add rustfmt && rustup component add clippy
114114
- run: cargo fmt -- --check
115+
- run: cargo clippy -- -D clippy::all

0 commit comments

Comments
 (0)