From 8d9f0f11465d8572239a45cc27ce3b0593591d77 Mon Sep 17 00:00:00 2001 From: Ajeet D'Souza <98ajeet@gmail.com> Date: Fri, 2 Oct 2020 01:53:00 +0530 Subject: [PATCH] Add workflow for cargo-clippy --- .../workflows/{cargo-bloat.yml => cargo-clippy.yml} | 10 ++++++---- .github/workflows/cargo-test.yml | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) rename .github/workflows/{cargo-bloat.yml => cargo-clippy.yml} (57%) diff --git a/.github/workflows/cargo-bloat.yml b/.github/workflows/cargo-clippy.yml similarity index 57% rename from .github/workflows/cargo-bloat.yml rename to .github/workflows/cargo-clippy.yml index b45d60d..fe4a1bd 100644 --- a/.github/workflows/cargo-bloat.yml +++ b/.github/workflows/cargo-clippy.yml @@ -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 }} diff --git a/.github/workflows/cargo-test.yml b/.github/workflows/cargo-test.yml index 284d8dd..2ee0af9 100644 --- a/.github/workflows/cargo-test.yml +++ b/.github/workflows/cargo-test.yml @@ -5,7 +5,7 @@ on: pull_request: jobs: - fmt: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2