Checkmate - A Dendritic flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.
checkmateand vic's dendritic libs made for you with Love++ and AI--. If you like my work, consider sponsoring
-
treefmt - nixfmt, deadnix, mdformat, yamlfmt. See
treefmt.nix. -
nix-unit - The flake being checked is available as
inputs.target
Checkmate is a collection of Dendritic modules.
# Generate a new project including github CI action
nix flake new -t github:vic/checkmatenix flake check github:vic/checkmate --override-input target .# formatting your code
nix run github:vic/checkmate#fmt --override-input target .
# checking if code is formatted
nix run github:vic/checkmate#fmt --override-input target . -- --ciOn your github action:
on:
pull_request:
push:
jobs:
checkmate:
name: checkmate
runs-on: ubuntu-latest
steps:
- uses: cachix/install-nix-action@v30
- run: nix flake check -L github:vic/checkmate --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHASome repos being tested with checkmate: