Actions: Run clippy aswell

pull/37/head
Andre Richter 5 years ago
parent e0c198fb72
commit 7f54f0f7c2
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -1,4 +1,4 @@
name: Check formatting
name: Formatting + Clippy
on:
push:
@ -18,7 +18,7 @@ on:
jobs:
build:
name: Check Rust code formatting
name: Formatter and linter checks
runs-on: ubuntu-18.04
steps:
@ -30,8 +30,12 @@ jobs:
- name: Set up Rust nightly
run: |
rustup self update
rustup toolchain install nightly --component rustfmt
rustup toolchain install nightly --component rustfmt clippy rust-src
rustup default nightly
cargo install cargo-xbuild
- name: Run cargo fmt
run: |
ruby utils/fmt_all.rb --check
- name: Run cargo clippy
run: |
ruby utils/clippy_all.rb
Loading…
Cancel
Save