File tree Expand file tree Collapse file tree 2 files changed +43
-4
lines changed Expand file tree Collapse file tree 2 files changed +43
-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
+ - " .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
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