File tree Expand file tree Collapse file tree 3 files changed +29
-15
lines changed Expand file tree Collapse file tree 3 files changed +29
-15
lines changed Original file line number Diff line number Diff line change @@ -37,26 +37,36 @@ jobs:
37
37
commit_message : ' Materialize Nix expressions'
38
38
file_pattern : ' nix/ *.cabal'
39
39
40
- stylish-haskell :
41
- name : ' stylish-haskell '
40
+ fourmolu :
41
+ name : ' Style '
42
42
runs-on : ubuntu-latest
43
43
steps :
44
- - name : Install stylish-haskell
45
- run : |
46
- cd $(mktemp -d)
47
- wget https://github.com/jaspervdj/stylish-haskell/releases/download/v0.11.0.0/stylish-haskell-v0.11.0.0-linux-x86_64.tar.gz
48
- tar xaf stylish-haskell-v0.11.0.0-linux-x86_64.tar.gz
49
- sudo mv stylish-haskell-v0.11.0.0-linux-x86_64/stylish-haskell /usr/local/bin/
50
- stylish-haskell --version
51
-
52
-
44
+ - name : Check out code
45
+
53
46
with :
54
47
submodules : recursive
55
48
56
- - name : Format with stylish-haskell
57
- run : stylish-haskell -i -r kore
49
+ - name : Install Nix
50
+ uses : cachix/install-nix-action@v12
51
+ with :
52
+ extra_nix_config : |
53
+ substituters = http://cache.nixos.org https://hydra.iohk.io
54
+ trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
55
+
56
+ - name : Install Cachix
57
+ uses : cachix/cachix-action@v8
58
+ with :
59
+ name : kore
60
+ signingKey : ' ${{ secrets.KORE_CACHIX_SIGNING_KEY }}'
61
+ skipPush : true
62
+
63
+ - name : Format
64
+ run : |
65
+ ./nix/fourmolu.sh
58
66
59
67
- name : Commit changes
60
68
uses :
stefanzweifel/[email protected]
61
69
with :
62
- commit_message : ' Format with stylish-haskell'
70
+ commit_message : ' Format with fourmolu'
71
+ file_pattern : ' *.hs'
72
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env nix-shell
2
+ #! nix-shell ../shell.nix -i bash
3
+
4
+ fd ' .*\.hs$' | xargs fourmolu -o -XTypeApplications -o -XPatternSynonyms -o -XBangPatterns -i
Original file line number Diff line number Diff line change 10
10
pkgs = import sources . "nixpkgs" { } ;
11
11
12
12
inherit ( pkgs ) cabal-install ghcid stack ;
13
- inherit ( pkgs ) gnumake yq z3 ;
13
+ inherit ( pkgs ) fd gnumake yq z3 ;
14
14
15
15
# Change the compiler when updating our own resolver.
16
16
compiler-nix-name = "ghc8104" ;
You can’t perform that action at this time.
0 commit comments