Skip to content

Commit

Permalink
Add format check in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
fujimura committed Jan 30, 2024
1 parent 2d474f8 commit f813941
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,20 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: cabal build
format:
name: Format on GHC ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
ghc: ["latest"]
cabal: ["latest"]
steps:
- uses: actions/checkout@v4
- name: Setup Haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- run: |
cabal install ormolu
ormolu --mode check $(git ls-files | grep "\.hs$")

0 comments on commit f813941

Please sign in to comment.