name: CI
on:
pull_request:
push:
branches:
env:
CARGO_TERM_COLOR: always
jobs:
rust:
name: fmt, clippy, test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: rustup component add rustfmt clippy
- run: cargo fmt --check
- run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo test --all-features