Skip to content

Commit bf6ca2f

Browse files
committed
ci: added treefmt workflow to gha and removed from buildbot
1 parent 832de87 commit bf6ca2f

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/treefmt.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Formatting
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- "**.md"
7+
- "**.svg"
8+
- ".gitignore"
9+
- "LICENSE"
10+
- "flake.lock"
11+
push:
12+
branches:
13+
- main
14+
paths-ignore:
15+
- "**.md"
16+
- "**.svg"
17+
- ".gitignore"
18+
- "LICENSE"
19+
- "flake.lock"
20+
21+
jobs:
22+
treefmt:
23+
name: Check formatting with treefmt
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
- name: Install Nix
29+
uses: cachix/install-nix-action@v31
30+
- name: Run treefmt check
31+
run: nix build .#checks.x86_64-linux.treefmt

flake/dev/fmt.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
perSystem =
88
{ config, pkgs, ... }:
99
{
10-
ci.buildbot = {
11-
inherit (config.checks) treefmt;
12-
};
13-
1410
treefmt.config = {
1511
projectRootFile = "flake.nix";
1612
flakeCheck = true;

0 commit comments

Comments
 (0)