From 5df0ff4086a2a597bcc2b177fb9ff257fcf71275 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Sun, 18 Oct 2020 21:06:03 -0400 Subject: [PATCH] Add Clippy (stable) job and continue-on-error Clippy (nightly) job Do not pass -- -D warnings to the Clippy (nightly) job We do _not_ want the nightly job to fail on warnings. Resolves #1156 --- .github/workflows/ci.yml | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aef9225e..7e45a56f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,9 +81,28 @@ jobs: args: --verbose --release clippy: - name: Clippy + name: Clippy (stable) timeout-minutes: 30 runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: clippy + override: true + - name: Run clippy + uses: actions-rs/clippy-check@v1 + with: + name: Clippy (stable) + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-features --all-targets -- -D warnings + + clippy-nightly: + name: Clippy (nightly) + timeout-minutes: 30 + runs-on: ubuntu-latest + continue-on-error: true steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -91,11 +110,13 @@ jobs: toolchain: nightly components: clippy override: true - - name: Run clippy + - name: Run Clippy (nightly) uses: actions-rs/clippy-check@v1 + continue-on-error: true with: + name: Clippy (nightly) token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features --all-targets -- -D warnings + args: --all-features --all-targets fmt: name: Rustfmt