From 50fdb12bbbef70fccfeb471f6845c38b8ffe1b8b Mon Sep 17 00:00:00 2001 From: Mark Stopka Date: Wed, 26 Jan 2022 21:30:07 +0100 Subject: [PATCH] ci: Start linting both code and some support files (#96) --- .github/workflows/validate.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8ca0f10a..14ea7324 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -55,8 +55,8 @@ jobs: command: test args: --all-features - lints: - name: Lints + lints-rust: + name: Lint Rust runs-on: ubuntu-latest steps: - name: Checkout sources @@ -80,7 +80,21 @@ jobs: uses: actions-rs/cargo@v1 with: command: clippy - args: -- -D warnings + args: --all-features -- -D warnings + + lints-others: + name: Lint Support Files + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 - name: Check EditorConfig Compliance uses: editorconfig-checker/action-editorconfig-checker@v1 + + lints: + name: Lint Rust & Support Files + runs-on: ubuntu-latest + needs: [lints-rust, lints-others] + steps: + - run: echo "All lints successful"