;ci: use --pedantic for all; fix a warning with unit test suites

This commit is contained in:
Simon Michael 2020-03-07 14:43:50 -08:00
parent 7e1bceff35
commit 5639b47d85
4 changed files with 5 additions and 2 deletions

View File

@ -172,8 +172,8 @@ jobs:
- name: Build hledger and test unit tests, doc tests
run: |
stack $ARGS build --ghc-options=-Werror --test --bench
# --no-terminal # --no-run-benchmarks
stack $ARGS build --pedantic --test --bench
# --ghc-options=-Werror --no-terminal # --no-run-benchmarks
env:
ARGS: ${{ matrix.plan.resolver }}

View File

@ -118,6 +118,7 @@ jobs:
- name: Build hledger and test unit tests, doc tests
run: |
stack build --pedantic --test
# --ghc-options=-Werror
- name: Install shelltestrunner
run: |

View File

@ -8,6 +8,7 @@ import "hledger-lib" Hledger (tests_Hledger)
import System.Environment (setEnv)
import Test.Tasty (defaultMain)
main :: IO ()
main = do
setEnv "TASTY_HIDE_SUCCESSES" "true"
setEnv "TASTY_ANSI_TRICKS" "false" -- helps the above

View File

@ -10,6 +10,7 @@ import Hledger.Cli (tests_Hledger_Cli)
import System.Environment (setEnv)
import Test.Tasty (defaultMain)
main :: IO ()
main = do
setEnv "TASTY_HIDE_SUCCESSES" "true"
setEnv "TASTY_ANSI_TRICKS" "false" -- helps the above