Skip to content

Commit

Permalink
Enable fourmolu on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
turion committed May 12, 2023
1 parent b2d59a9 commit 9c15939
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: build

jobs:
lint:
name: "Run hlint"
name: "Run hlint and fourmolu"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,6 +25,19 @@ jobs:
with:
fail-on: warning

- uses: haskell/actions/setup@v2
id: setup-haskell-build
with:
ghc-version: "9.2.5"

- name: Cabal update
run: cabal update

- name: Set up and run fourmolu
run: |
cabal install fourmolu
fourmolu --mode check .
generateMatrix:
name: "Generate matrix from cabal"
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions fourmolu.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
indentation: 2
indent-wheres: true
record-brace-space: true

0 comments on commit 9c15939

Please sign in to comment.