77 - master
88 workflow_dispatch :
99
10- # As of 6 August 2023, ubuntu-latest, windows-latest and macos-latest come
11- # with Stack 2.11.1 and GHC 9.6.2.
10+ # As of 2026-06-30:
11+ # * ubuntu-latest comes with Stack 3.11.1 and GHC 9.14.1
12+ # * windows-latest comes with Stack 3.11.1 and GHC 9.14.1
13+ # * macos-latest does not come with Haskell tools
1214
1315jobs :
1416 unit-tests :
@@ -19,34 +21,42 @@ jobs:
1921 matrix :
2022 os :
2123 - ubuntu-latest
22- resolver :
23- - stack-ghc-9.2.8.yaml
24- - stack-ghc-9.4.5.yaml
25- - stack-ghc-9.6.2.yaml
24+ snapshot :
25+ - stack-ghc-9.8.4.yaml
26+ - stack-ghc-9.10.3.yaml
27+ - stack-ghc-9.12.4.yaml
28+ - stack-ghc-9.14.1.yaml
2629 include :
2730 - os : windows-latest
28- resolver : stack-ghc-9.6.2 .yaml
31+ snapshot : stack-ghc-9.10.3 .yaml
2932 - os : macos-latest
30- resolver : stack-ghc-9.6.2 .yaml
33+ snapshot : stack-ghc-9.10.3 .yaml
3134 steps :
3235 - name : Clone project
33- uses : actions/checkout@v3
36+ uses : actions/checkout@v7
3437 - name : Cache dependencies on Unix-like OS
3538 if : startsWith(runner.os, 'Linux') || startsWith(runner.os, 'macOS')
36- uses : actions/cache@v3
39+ uses : actions/cache@v6
3740 with :
3841 path : ~/.stack
39- key : ${{ runner.os }}-${{ matrix.resolver }}
42+ key : ${{ runner.os }}-${{ matrix.snapshot }}
4043 - name : Cache dependencies on Windows
4144 if : startsWith(runner.os, 'Windows')
42- uses : actions/cache@v3
45+ uses : actions/cache@v6
4346 with :
4447 path : |
4548 ~\AppData\Roaming\stack
4649 ~\AppData\Local\Programs\stack
47- key : ${{ runner.os }}-${{ matrix.resolver }}
50+ key : ${{ runner.os }}-${{ matrix.snapshot }}
4851 - name : Run tests
4952 shell : bash
5053 run : |
5154 set -ex
52- stack --resolver ${{ matrix.resolver }} test --bench --no-run-benchmarks --haddock --no-haddock-deps
55+ if [[ "${{ matrix.os }}" == "macos-latest" ]]
56+ then
57+ # As at 2026-06-30:
58+ #
59+ # * macos-latest does not include Haskell tools.
60+ curl -sSL https://get.haskellstack.org/ | sh
61+ fi
62+ stack --snapshot ${{ matrix.snapshot }} test --bench --no-run-benchmarks --haddock --no-haddock-deps
0 commit comments