File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ${{ matrix.os }}
13
13
strategy :
14
14
matrix :
15
- os : [ubuntu-latest, macOS-latest ]
15
+ os : [ubuntu-latest]
16
16
cabal : ["3.2"]
17
17
ghc :
18
18
- " 8.8.4"
40
40
- name : Configure
41
41
run : |
42
42
cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
43
+ cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.17'
43
44
44
45
- name : Freeze
45
46
run : |
59
60
run : |
60
61
cabal test all
61
62
63
+ - name : Run doctests
64
+ run : |
65
+ # Necessary for doctest to be found in $PATH
66
+ export PATH="$HOME/.cabal/bin:$PATH"
67
+
68
+ # Filter out base-compat-batteries from .ghc.environment.*, as its modules
69
+ # conflict with those of base-compat.
70
+ #
71
+ # FIXME: This is an ugly hack. Ultimately, we'll want to use cabal-doctest
72
+ # (or cabal v2-doctest, if it ever lands) to provide a clean GHC environment.
73
+ # This might allow running doctests in GHCJS build as well.
74
+ perl -i -e 'while (<ARGV>) { print unless /package-id\s+(base-compat-batteries)-\d+(\.\d+)*/; }' .ghc.environment.*
75
+
76
+ (cd servant && doctest src)
77
+ (cd servant-client && doctest src)
78
+ (cd servant-client-core && doctest src)
79
+ (cd servant-http-streams && doctest src)
80
+ (cd servant-docs && doctest src)
81
+ (cd servant-foreign && doctest src)
82
+ (cd servant-server && doctest src)
83
+ (cd servant-machines && doctest src)
84
+ (cd servant-conduit && doctest src)
85
+ (cd servant-pipes && doctest src)
86
+
62
87
stack :
63
88
name : stack / ghc ${{ matrix.ghc }}
64
89
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments