Add clippy job

Add Run Clippy to bors.toml
This commit is contained in:
unvalley 2022-10-10 22:08:34 +09:00
parent 2e539249cb
commit d8fed1f7a9
2 changed files with 20 additions and 0 deletions

View File

@ -48,6 +48,25 @@ jobs:
command: test command: test
args: --release 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: fmt:
name: Run Rustfmt name: Run Rustfmt
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04

View File

@ -2,6 +2,7 @@ status = [
'Tests on ubuntu-20.04', 'Tests on ubuntu-20.04',
'Tests on macos-latest', 'Tests on macos-latest',
'Tests on windows-latest', 'Tests on windows-latest',
'Run Clippy',
'Run Rustfmt', 'Run Rustfmt',
] ]
# 3 hours timeout # 3 hours timeout