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: on:
push: push:
pull_request: pull_request:
jobs: jobs:
bloat: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1 - uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: nightly
override: true override: true
- uses: orf/cargo-bloat-action@v1 components: clippy
- uses: actions-rs/clippy-check@v1
with: with:
args: --workspace --all-targets --all-features -- -D clippy::all
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}

View File

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