name: โ Test Code
on:
workflow_call:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: ๐งช Test on ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
- target: aarch64-unknown-linux-gnu
os: ubuntu-24.04-arm
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-gnu
os: windows-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
steps:
- name: ๐๏ธ Checkout code
uses: actions/checkout@v6
- name: ๐ฆ Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.target }}
components: rustfmt, clippy
- name: ๐ฆ Install Dependencies
run: cargo install cargo-nextest --locked
- name: ๐งช Run Tests
run: cargo nextest run --target ${{ matrix.target }}