Skip to content

Commit be9c745

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

File tree

2 files changed

+43
-4
lines changed

2 files changed

+43
-4
lines changed

.github/workflows/treefmt.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Formatting
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- ".editorconfig"
7+
- ".envrc"
8+
- ".git-blame-ignore-revs"
9+
- ".gitignore"
10+
- "LICENSE"
11+
- "flake.lock"
12+
- "**.md"
13+
- "**.scm"
14+
- "**.svg"
15+
- "**/man/*.5"
16+
- "docs/gfm-alerts-to-admonitions/tests/**/*.yml"
17+
push:
18+
branches:
19+
- main
20+
paths-ignore:
21+
- ".editorconfig"
22+
- ".envrc"
23+
- ".git-blame-ignore-revs"
24+
- ".gitignore"
25+
- "LICENSE"
26+
- "flake.lock"
27+
- "**.md"
28+
- "**.scm"
29+
- "**.svg"
30+
- "**/man/*.5"
31+
- "docs/gfm-alerts-to-admonitions/tests/**/*.yml"
32+
33+
jobs:
34+
treefmt:
35+
name: Check formatting with treefmt
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
40+
- name: Install Nix
41+
uses: cachix/install-nix-action@v31
42+
- name: Run treefmt check
43+
run: nix build .#checks.x86_86-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)