ci: added treefmt workflow to gha and removed from buildbot

This commit is contained in:
C4 Patino 2025-08-09 00:21:43 -05:00 committed by Matt Sturgeon
parent e1e4bb83f1
commit cfdbf72664
2 changed files with 21 additions and 4 deletions

21
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: lint
on:
pull_request:
paths-ignore:
- "**.md"
- "**.svg"
- ".gitignore"
- "LICENSE"
- "flake.lock"
jobs:
treefmt:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Run treefmt check
run: nix build .#checks.x86_64-linux.treefmt --accept-flake-config

View file

@ -7,10 +7,6 @@
perSystem =
{ config, pkgs, ... }:
{
ci.buildbot = {
inherit (config.checks) treefmt;
};
treefmt.config = {
projectRootFile = "flake.nix";
flakeCheck = true;