@@ -23,47 +23,41 @@ jobs:
2323 include :
2424 # Linux
2525 # haskell-actions/setup is having trouble installing from hvr/ppa for ghc-8.0 and 8.2
26- # - { os: ubuntu-latest, ghc: "8.0.2" }
27- # - { os: ubuntu-latest, ghc: "8.2.2" }
2826 - { os: ubuntu-latest, ghc: "8.4.4" }
2927 - { os: ubuntu-latest, ghc: "8.6.5" }
3028 - { os: ubuntu-latest, ghc: "8.8.4" }
3129 - { os: ubuntu-latest, ghc: "8.10.7" }
3230 - { os: ubuntu-latest, ghc: "9.0.2" }
3331 - { os: ubuntu-latest, ghc: "9.2.8" }
3432 - { os: ubuntu-latest, ghc: "9.4.8" }
35- - { os: ubuntu-latest, ghc: "9.6.6 " }
33+ - { os: ubuntu-latest, ghc: "9.6.7 " }
3634 - { os: ubuntu-latest, ghc: "9.8.4" }
37- - { os: ubuntu-latest, ghc: "9.10.1 " }
38- - { os: ubuntu-latest, ghc: "9.12.1 " }
35+ - { os: ubuntu-latest, ghc: "9.10.2 " }
36+ - { os: ubuntu-latest, ghc: "9.12.2 " }
3937 # MacOS
40- # - { os: macOS-latest, ghc: "8.0.2" }
41- # - { os: macOS-latest, ghc: "8.2.2" }
4238 - { os: macOS-latest, ghc: "8.4.4" }
4339 - { os: macOS-latest, ghc: "8.6.5" }
4440 - { os: macOS-latest, ghc: "8.8.4" }
4541 - { os: macOS-latest, ghc: "8.10.7" }
4642 - { os: macOS-latest, ghc: "9.0.2" }
4743 - { os: macOS-latest, ghc: "9.2.8" }
4844 - { os: macOS-latest, ghc: "9.4.8" }
49- - { os: macOS-latest, ghc: "9.6.6 " }
45+ - { os: macOS-latest, ghc: "9.6.7 " }
5046 - { os: macOS-latest, ghc: "9.8.4" }
51- - { os: macOS-latest, ghc: "9.10.1 " }
52- - { os: macOS-latest, ghc: "9.12.1 " }
47+ - { os: macOS-latest, ghc: "9.10.2 " }
48+ - { os: macOS-latest, ghc: "9.12.2 " }
5349 # Windows
54- # - { os: windows-latest, ghc: "8.0.2" }
55- # - { os: windows-latest, ghc: "8.2.2" }
5650 - { os: windows-latest, ghc: "8.4.4" }
5751 - { os: windows-latest, ghc: "8.6.5" }
5852 - { os: windows-latest, ghc: "8.8.4" }
5953 - { os: windows-latest, ghc: "8.10.7" }
6054 - { os: windows-latest, ghc: "9.0.2" }
6155 - { os: windows-latest, ghc: "9.2.8" }
6256 - { os: windows-latest, ghc: "9.4.8" }
63- - { os: windows-latest, ghc: "9.6.6 " }
57+ - { os: windows-latest, ghc: "9.6.7 " }
6458 - { os: windows-latest, ghc: "9.8.4" }
65- - { os: windows-latest, ghc: "9.10.1 " }
66- - { os: windows-latest, ghc: "9.12.1 " }
59+ - { os: windows-latest, ghc: "9.10.2 " }
60+ - { os: windows-latest, ghc: "9.12.2 " }
6761 steps :
6862 - uses : actions/checkout@v4
6963
9488 cabal $EXTRA_FLAGS build all --write-ghc-environment-files=always
9589
9690 - name : Doctest
91+ if : matrix.ghc != '8.4.4'
9792 run : |
9893 cabal install doctest --ignore-project --overwrite-policy=always
9994 ./scripts/doctest.sh
@@ -133,7 +128,7 @@ jobs:
133128 ghc : ' 9.4.8'
134129 stack-yaml : stack.yaml
135130 - resolver : lts-22
136- ghc : ' 9.6.6 '
131+ ghc : ' 9.6.7 '
137132 stack-yaml : stack.yaml
138133 - resolver : nightly
139134 stack-yaml : stack.yaml
@@ -148,7 +143,7 @@ jobs:
148143 stack-yaml : stack.yaml
149144 - resolver : lts-22
150145 os : macos-13
151- ghc : ' 9.6.6 '
146+ ghc : ' 9.6.7 '
152147 stack-yaml : stack.yaml
153148 # Windows-latest
154149 - resolver : lts-14
@@ -165,11 +160,12 @@ jobs:
165160 stack-yaml : stack.yaml
166161 - resolver : lts-22
167162 os : windows-latest
168- ghc : ' 9.6.6 '
163+ ghc : ' 9.6.7 '
169164 stack-yaml : stack.yaml
170165 env :
171166 STACK_YAML : ' ${{ matrix.stack-yaml }}'
172167 STACK_ARGS : ' --resolver ${{ matrix.resolver }}'
168+ HADDOCK : ${{ (matrix.resolver == 'lts-9' || matrix.resolver == 'lts-11' || matrix.resolver == 'lts-12') && '--no-haddock' || '--haddock --no-haddock-deps' }}
173169 cache-version : v5 # bump up this version to invalidate currently stored cache
174170 steps :
175171 - uses : actions/checkout@v4
@@ -217,9 +213,9 @@ jobs:
217213 set -ex
218214 if [ "${{ matrix.os }}.${{ matrix.resolver }}" == "ubuntu-latest.lts-19" ] && [ -n "${COVERALLS_TOKEN}" ]; then
219215 # Inspection tests aren't compatible with coverage
220- stack $STACK_ARGS build :spec :legacy-test --coverage --test --no-run-tests --haddock --no-haddock-deps
216+ stack $STACK_ARGS build :spec :legacy-test --coverage --test --no-run-tests $HADDOCK
221217 else
222- stack $STACK_ARGS build --test --no-run-tests --bench --no-run-benchmarks --haddock --no-haddock-deps
218+ stack $STACK_ARGS build --test --no-run-tests --bench --no-run-benchmarks $HADDOCK
223219 fi
224220
225221 - name : Test
@@ -309,3 +305,28 @@ jobs:
309305 ./legacy
310306 ghc --make -isrc:test -o spec test/Spec.hs
311307 ./spec
308+ fourmolu :
309+ runs-on : ubuntu-latest
310+
311+ defaults :
312+ run :
313+ shell : bash
314+
315+ strategy :
316+ fail-fast : false
317+
318+ steps :
319+ - uses : actions/checkout@v4
320+
321+ - name : Install fourmolu
322+ run : |
323+ FOURMOLU_VERSION="0.18.0.0"
324+ BINDIR=$HOME/.local/bin
325+ mkdir -p "$BINDIR"
326+ curl -sSfL "https://github.com/fourmolu/fourmolu/releases/download/v${FOURMOLU_VERSION}/fourmolu-${FOURMOLU_VERSION}-linux-x86_64" -o "$BINDIR/fourmolu"
327+ chmod a+x "$BINDIR/fourmolu"
328+ echo "$BINDIR" >> $GITHUB_PATH
329+
330+ - name : Run fourmolu
331+ run : ./scripts/fourmolize.sh
332+
0 commit comments