Skip to content

Commit

Permalink
Add beta toolchain to CI (#1520)
Browse files Browse the repository at this point in the history
* Fix beta clippy issues

* Undo

* Try to ignore beta clippy errors

* Syntax

* Syntax

* Trye

* test

* again

* test

* verbose

* shorten

* finalize
  • Loading branch information
larseggert authored Jan 2, 2024
1 parent d1639a4 commit 5d1bca0
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d1bca0

Please sign in to comment.