From c97294d45f9c7922576007eb1a7beb4df6f5082f Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 7 Apr 2021 17:28:17 +0200 Subject: [PATCH] Add CI for clippy --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c208d9a4..f7c17c7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -193,3 +193,39 @@ jobs: - name: Check formatting run: | ./admin/fmt -- --check + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + default: true + components: clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -p rustls -- -D warnings + + clippy-nightly: + name: Clippy (Nightly) + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + - name: Install rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + override: true + default: true + components: clippy + - uses: actions-rs/cargo@v1 + with: + command: clippy + args: -p rustls