Skip to content

Commit 1eaf600

Browse files
committed
Added stylish-haskell to github-actions
1 parent eac3d69 commit 1eaf600

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/haskell.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,32 @@ jobs:
6565
- name: io-sim [test]
6666
run: cabal run io-sim:test
6767

68+
stylish-haskell:
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- name: Set cache versioj
73+
run: echo "CACHE_VERSION=hi5eTh3A" >> $GITHUB_ENV
74+
75+
- name: "Setup haskell"
76+
uses: haskell/actions/setup@v1
77+
id: setup-haskell
78+
with:
79+
ghc-version: 9.2.2
80+
cabal-version: 3.6.2.0
81+
82+
- uses: actions/cache@v3
83+
name: "Cache `cabal store`"
84+
with:
85+
path: ${{ steps.setup-haskell.outputs.cabal-store }}
86+
key: cache-dependencies-${{ env.CACHE_VERSION }}-${{ hashFiles('dependencies.txt') }}
87+
restore-keys: cache-dependencies-${{ env.CACHE_VERSION }}-${{ runner.os }}-${{ matrix.ghc }}
88+
89+
- name: "Install stylish-haskell"
90+
run: |
91+
cabal install stylish-haskell
92+
93+
- name: "Run stylish-haskell"
94+
run: |
95+
./scripts/stylish-haskell.sh
96+
git diff --exit-code

0 commit comments

Comments
 (0)