treefmt/ci.sh
Jonas Chevalier 66959743ba
fix nixpkgs.withConfig (#181)
Add CI check so this actually gets exercised
2022-09-21 21:30:46 +02:00

16 lines
331 B
Bash
Executable File

#!/usr/bin/env bash
# nix-shell loads the devshell making rust and all the formatters available.
set -exuo pipefail
# Quick sanity check
cargo test
# Check that no code needs reformatting. Acts as a minimal integration test.
cargo run -- --fail-on-change
# Build the nix package
nix-build --no-out-link
# Check nix fmt
nix fmt