Files
2026-10-21 09:10:18 +02:00

27 lines
586 B
YAML

# Runs the tests on Linux and macOS, so the code of both keeps building.
name: Check
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
jobs:
check:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- run: cargo fmt --all --check
- run: cargo clippy --workspace --all-targets -- -D warnings
- run: cargo test --workspace