name: CI
on:
push:
branches:
pull_request:
branches:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: clippy, rustfmt
- run: cargo build
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
- run: cargo test --all-features