From af0757f6259b95225ee4557d033a3d2dccc78998 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Thu, 17 Mar 2022 17:41:44 -0500 Subject: ci: stop clippy-check from stopping CI --- .github/workflows/ci.yml | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7caced6..ad3537c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,32 +34,39 @@ jobs: with: command: test - rustfmt: + lints: + name: Lints runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - components: rustfmt - - uses: actions-rs/cargo@v1 + components: rustfmt, clippy + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - clippy: + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings + + clippy_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: clippy + - uses: actions/checkout@v1 + - run: rustup component add clippy - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features -- -D warnings + args: --all-features \ No newline at end of file -- cgit v1.2.3-70-g09d2