Add clippy job

Add clippy job to CI
This commit is contained in:
unvalley 2022-10-28 22:14:12 +09:00
parent 6add470805
commit 401e956128
2 changed files with 19 additions and 0 deletions

View File

@ -48,6 +48,24 @@ jobs:
command: test command: test
args: --release --all args: --release --all
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
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