mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-18 17:57:11 +03:00
;ci: use --pedantic for all; fix a warning with unit test suites
This commit is contained in:
parent
7e1bceff35
commit
5639b47d85
4
.github/workflows/linux-nightly.yml
vendored
4
.github/workflows/linux-nightly.yml
vendored
@ -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 }}
|
||||
|
||||
|
1
.github/workflows/mac-nightly.yml
vendored
1
.github/workflows/mac-nightly.yml
vendored
@ -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: |
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user