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