name: CI
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run Cargo test
run: cargo test --all-features
msrv-test:
runs-on: ubuntu-latest
steps:
- name: Checkout respository
uses: actions/checkout@v4
- name: Install cargo-minimal-versions
uses: taiki-e/install-action@v2
with:
tool: cargo-hack,cargo-minimal-versions
- name: Install MSRV toolchain
run: rustup toolchain install 1.70
- name: Run Cargo test on MSRV
run: cargo +1.70 minimal-versions test
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install cargo hack
uses: taiki-e/install-action@cargo-hack
- name: Run cargo clippy on all feature combinations
run: cargo hack --feature-powerset clippy -- --deny warnings