name: Test
on:
push:
branches:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo test --all-features
msrv:
name: MSRV 1.94.1
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@1.94.1
- uses: Swatinem/rust-cache@v2
with:
key: msrv
# `--all-targets` without `--all-features`: the MSRV claim is about the
# crate as published with its defaults, not about every optional feature.
- run: cargo check --all-targets