name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Install stable Rust
run: rustup toolchain install stable --profile minimal --component rustfmt,clippy
- run: cargo +stable fmt --check
- run: cargo +stable clippy --locked --all-targets -- -D warnings
- run: cargo +stable test --locked
- run: cargo +stable package --locked
msrv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- run: rustup toolchain install 1.87.0 --profile minimal
- run: cargo +1.87.0 check --locked --all-targets