name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test Suite (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2025]
timeout-minutes: 30
steps:
- uses: actions/checkout@v6.0.3
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Run library and integration tests
run: cargo test --lib --tests --package mrrc --verbose
- name: Run doc tests
run: cargo test --doc --package mrrc --verbose
- name: Build examples
run: cargo build --examples --verbose