Skip to content
/ checkmate Public

A flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.

License

Notifications You must be signed in to change notification settings

vic/checkmate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sponsor Vic Dendritic Nix License CI Status

Checkmate - A Dendritic flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.

checkmate and vic's dendritic libs made for you with Love++ and AI--. If you like my work, consider sponsoring

Checks included by default

  • treefmt - nixfmt, deadnix, mdformat, yamlfmt. See treefmt.nix.

  • nix-unit - The flake being checked is available as inputs.target

Extensible.

Checkmate is a collection of Dendritic modules.

Getting started

# Generate a new project including github CI action
nix flake new -t github:vic/checkmate

Running flake check locally

nix flake check github:vic/checkmate --override-input target .

Running treefmt on your code

# 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 . -- --ci

CI Usage

On 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_SHA

Examples

Some repos being tested with checkmate:

About

A flake checker (treefmt & nix-unit) for testing other flakes with zero dependencies.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages