File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 65
65
- name : io-sim [test]
66
66
run : cabal run io-sim:test
67
67
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
You can’t perform that action at this time.
0 commit comments