Skip to content

Commit 606748b

Browse files
committed
CI: restore doctests
1 parent dd8c8d8 commit 606748b

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/haskell-ci.diff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
--- haskell-ci.yml 2022-12-16 13:49:54.000000000 +0100
22
+++ patched-haskell-ci.yml 2022-12-16 13:49:36.000000000 +0100
3-
@@ -176,10 +176,6 @@
4-
active-repositories: hackage.haskell.org, head.hackage.ghc.haskell.org:override
3+
@@ -170,10 +170,6 @@
4+
repository hackage.haskell.org
5+
url: http://hackage.haskell.org/
56
EOF
6-
fi
77
- cat >> $CABAL_CONFIG <<EOF
88
- program-default-options
99
- ghc-options: $GHCJOBS +RTS -M3G -RTS
1010
- EOF
1111
cat $CABAL_CONFIG
1212
- name: versions
1313
run: |
14-
@@ -259,6 +255,12 @@
14+
@@ -250,6 +246,12 @@
1515
- name: build
1616
run: |
1717
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always

.github/workflows/haskell-ci.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,6 @@ jobs:
170170
repository hackage.haskell.org
171171
url: http://hackage.haskell.org/
172172
EOF
173-
cat >> $CABAL_CONFIG <<EOF
174-
program-default-options
175-
ghc-options: $GHCJOBS +RTS -M3G -RTS
176-
EOF
177173
cat $CABAL_CONFIG
178174
- name: versions
179175
run: |
@@ -250,6 +246,12 @@ jobs:
250246
- name: build
251247
run: |
252248
$CABAL v2-build $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --write-ghc-environment-files=always
249+
- name: install doctest
250+
run: |
251+
$CABAL v2-install $ARG_COMPILER doctest --overwrite-policy=always
252+
- name: doctests
253+
run: |
254+
$CABAL v2-repl BNFC --with-ghc-pkg=$HCPKG -w doctest --repl-options=-fno-warn-type-defaults
253255
- name: tests
254256
run: |
255257
$CABAL v2-test $ARG_COMPILER $ARG_TESTS $ARG_BENCH all --test-show-details=direct

0 commit comments

Comments
 (0)