name: CI
on:
push:
pull_request:
jobs:
msrv:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust 1.85
uses: dtolnay/rust-toolchain@1.85.0
- name: Check MSRV
run: cargo check --all-features
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check Formatting
run: cargo fmt --check
- name: Check Lints
run: |
cargo clippy --all-targets --no-default-features -- -D warnings
cargo clippy --all-targets --all-features -- -D warnings
- name: Run Tests
run: |
cargo test --no-default-features
cargo test
cargo test --all-features