From d8fed1f7a9778218b8cefdecaaa6a037e3289e84 Mon Sep 17 00:00:00 2001 From: unvalley Date: Mon, 10 Oct 2022 22:08:34 +0900 Subject: [PATCH] Add clippy job Add Run Clippy to bors.toml --- .github/workflows/rust.yml | 19 +++++++++++++++++++ bors.toml | 1 + 2 files changed, 20 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9939d3f24..e1e09211a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -48,6 +48,25 @@ jobs: command: test args: --release + clippy: + name: Run Clippy + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + components: clippy + - name: Cache dependencies + uses: Swatinem/rust-cache@v2.0.0 + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: --all-targets + fmt: name: Run Rustfmt runs-on: ubuntu-20.04 diff --git a/bors.toml b/bors.toml index 73324892f..8ba0eed94 100644 --- a/bors.toml +++ b/bors.toml @@ -2,6 +2,7 @@ status = [ 'Tests on ubuntu-20.04', 'Tests on macos-latest', 'Tests on windows-latest', + 'Run Clippy', 'Run Rustfmt', ] # 3 hours timeout