name: CI
on:
push:
env:
CARGO_TERM_COLOR: always
jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
components: clippy, rustfmt
- run: cargo check
- run: cargo run
- run: cargo test
- run: cargo fmt --all -- --check
- run: cargo clippy -- -W clippy::pedantic -W clippy::nursery -W clippy::unwrap_used -W clippy::expect_used