diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 94b7ff2447..8313f77d0c 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 @@ -15,10 +15,21 @@ jobs: strategy: 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 + os: [ubuntu, macos, windows] rust-toolchain: [1.70.0, stable] - runs-on: ${{ matrix.os }} + ignore_clippy_errors: [false] + # Add beta toolchain, but don't fail CI on clippy errors. + include: + - os: ubuntu + rust-toolchain: beta + ignore_clippy_errors: true + - os: macos + rust-toolchain: beta + ignore_clippy_errors: true + - os: windows + rust-toolchain: beta + ignore_clippy_errors: true + runs-on: ${{ matrix.os }}-latest defaults: run: shell: bash @@ -118,6 +129,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