diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a3a81f51..0ffbd7087 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,12 +20,29 @@ jobs: profile: minimal toolchain: 1.43.1 override: true - - run: rustup component add rustfmt + - run: rustup component add rustfmt clippy - uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check + - uses: actions-rs/cargo@v1 + with: + command: clippy + + run_clippy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/toolchain@v1 + with: + toolchain: 1.43.1 + components: clippy + override: true + - uses: actions-rs/clippy-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + build_and_test: name: Build and test