Add workflow for cargo-clippy

This commit is contained in:
Ajeet D'Souza 2020-10-02 01:53:00 +05:30
parent fcac28eed0
commit 8d9f0f1146
2 changed files with 7 additions and 5 deletions

View File

@ -1,19 +1,21 @@
name: cargo-bloat
name: cargo-clippy
on:
push:
pull_request:
jobs:
bloat:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
toolchain: nightly
override: true
- uses: orf/cargo-bloat-action@v1
components: clippy
- uses: actions-rs/clippy-check@v1
with:
args: --workspace --all-targets --all-features -- -D clippy::all
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -5,7 +5,7 @@ on:
pull_request:
jobs:
fmt:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2