File tree Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Expand file tree Collapse file tree 2 files changed +31
-4
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change 7
7
perSystem =
8
8
{ config , pkgs , ... } :
9
9
{
10
- ci . buildbot = {
11
- inherit ( config . checks ) treefmt ;
12
- } ;
13
-
14
10
treefmt . config = {
15
11
projectRootFile = "flake.nix" ;
16
12
flakeCheck = true ;
You can’t perform that action at this time.
0 commit comments