Skip to content

Commit 72a1d62

Browse files
committed
Run fourmolu in Test workflow
1 parent d040a4c commit 72a1d62

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,32 @@ jobs:
146146
- name: Run hlint
147147
run: curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s kore -j
148148

149-
stylish-haskell:
150-
name: 'stylish-haskell'
149+
fourmolu:
150+
name: 'Style'
151151
runs-on: ubuntu-latest
152152
steps:
153-
- name: Install stylish-haskell
154-
run: |
155-
cd $(mktemp -d)
156-
wget https://github.com/jaspervdj/stylish-haskell/releases/download/v0.11.0.0/stylish-haskell-v0.11.0.0-linux-x86_64.tar.gz
157-
tar xaf stylish-haskell-v0.11.0.0-linux-x86_64.tar.gz
158-
sudo mv stylish-haskell-v0.11.0.0-linux-x86_64/stylish-haskell /usr/local/bin/
159-
stylish-haskell --version
160-
161-
- uses: actions/[email protected]
153+
- name: Check out code
154+
uses: actions/[email protected]
162155
with:
163156
submodules: recursive
164157

165-
- name: Format with stylish-haskell
166-
run: stylish-haskell -i -r kore
158+
- name: Install Nix
159+
uses: cachix/install-nix-action@v12
160+
with:
161+
extra_nix_config: |
162+
substituters = http://cache.nixos.org https://hydra.iohk.io
163+
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=
164+
165+
- name: Install Cachix
166+
uses: cachix/cachix-action@v8
167+
with:
168+
name: kore
169+
signingKey: '${{ secrets.KORE_CACHIX_SIGNING_KEY }}'
170+
skipPush: true
171+
172+
- name: Format
173+
run: |
174+
./nix/fourmolu.sh
167175
168176
- name: Check for changes
169177
run: |

0 commit comments

Comments
 (0)