name: Test CI
on:
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Format
run: nix-shell --run "cargo fmt --all -- --check"
- name: Build
run: nix-shell --run "cargo build --verbose --all-features"
- name: Run tests
run: nix-shell --run "cargo test --lib tests --all-features --verbose"