ci: added treefmt workflow to gha and removed from buildbot

Without changes to `flake/dev/fmt.nix`, as that file is not on the 25.05
branch.

(cherry picked from commit cfdbf72664)
This commit is contained in:
C4 Patino 2025-08-09 00:21:43 -05:00 committed by Matt Sturgeon
parent ab1b5962e1
commit 6df0b97b39

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