name: Test
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
features: [",", "defmt", "custom-error-messages", "defmt,custom-error-messages"]
env:
FEATURES: --no-default-features --features ${{ matrix.features }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@nightly
with:
components: miri rust-src
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy llvm-tools
- run: cargo +stable install cargo-llvm-cov
- run: cargo +stable build $FEATURES
env:
RUSTFLAGS: "-D warnings"
- run: cargo +stable test $FEATURES
env:
RUSTFLAGS: "-D warnings"
- run: cargo +nightly miri test $FEATURES
- run: cargo +stable llvm-cov $FEATURES
- run: cargo +stable doc $FEATURES
env:
RUSTFLAGS: "-D warnings"
RUSTDOCFLAGS: "-D warnings"
- run: cargo +stable clippy $FEATURES
env:
RUSTFLAGS: "-D warnings"