From 2d8298b7e4d2d86b611e2615eea56995f908e082 Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Tue, 2 Jan 2024 11:09:46 +0200 Subject: [PATCH] Try to ignore beta clippy errors --- .github/workflows/check.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 94b7ff2447..4bd2da5ec9 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,11 +1,11 @@ name: CI on: push: - branches: [ "main" ] - paths-ignore: [ "*.md", "*.png", "*.svg", "LICENSE-*" ] + branches: ["main"] + paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] pull_request: - branches: [ "main" ] - paths-ignore: [ "*.md", "*.png", "*.svg", "LICENSE-*" ] + branches: ["main"] + paths-ignore: ["*.md", "*.png", "*.svg", "LICENSE-*"] env: CARGO_TERM_COLOR: always @@ -16,8 +16,11 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - # TODO: add beta (and nightly?) but don't fail the test if they fail rust-toolchain: [1.70.0, stable] + ignore_clippy_errors: [false] + include: + - rust-toolchain: beta # Also nightly? + ignore_clippy_errors: true runs-on: ${{ matrix.os }} defaults: run: @@ -118,6 +121,7 @@ jobs: - name: Clippy run: cargo +${{ matrix.rust-toolchain }} clippy -v --tests -- -D warnings if: success() || failure() + continue-on-error: ${{ matrix.ignore_clippy_errors }} - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3