diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 7683bf8438..bec7704cec 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,6 +17,7 @@ jobs: runs-on: ubuntu-latest needs: - style + - clippy - test - msrv - miri @@ -48,6 +49,27 @@ jobs: command: fmt args: --all -- --check + clippy: + name: Static Code Analysis ( Clippy ) + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy + + - name: Clippy Check + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -Aclippy::all -Dclippy::self_named_module_files + test: name: Test ${{ matrix.rust }} on ${{ matrix.os }} needs: [style]