name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test and Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Check Formatting
run: cargo fmt --all -- --check
- name: Run Tests
run: cargo test --all-features
- name: Run Clippy
run: cargo clippy -- -D warnings