on: [push, pull_request]
name: CI
permissions:
contents: read
jobs:
test-linux:
name: Unit Tests Linux
runs-on: ubuntu-latest
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run cargo test
run: cargo test --all-targets -- --nocapture
test-macos:
name: Unit Tests macOS
runs-on: macos-latest
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run cargo test
run: cargo test --all-targets -- --nocapture
test-windows:
name: Unit Test Windows
runs-on: windows-latest
env:
RUST_BACKTRACE: full
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings
- name: Run cargo test
run: cargo test --all-targets -- --nocapture