From 7f54f0f7c2f4217953fa36962827fafc84f84fa4 Mon Sep 17 00:00:00 2001 From: Andre Richter Date: Tue, 29 Oct 2019 22:45:11 +0100 Subject: [PATCH] Actions: Run clippy aswell --- .../workflows/{check_fmt.yml => check_fmt_clippy.yml} | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) rename .github/workflows/{check_fmt.yml => check_fmt_clippy.yml} (70%) diff --git a/.github/workflows/check_fmt.yml b/.github/workflows/check_fmt_clippy.yml similarity index 70% rename from .github/workflows/check_fmt.yml rename to .github/workflows/check_fmt_clippy.yml index 6834dc2b..ef3d95b6 100644 --- a/.github/workflows/check_fmt.yml +++ b/.github/workflows/check_fmt_clippy.yml @@ -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