name: CI
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
gate:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Format
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --all-targets -- -D warnings
- name: Test
run: cargo test --locked
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install MSRV toolchain
run: rustup toolchain install 1.88 --profile minimal
- name: Build at MSRV
run: cargo +1.88 build --locked