@@ -59,13 +59,13 @@ commands:
60 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
60 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --dependencies-only --enable-tests --ghc-options="${GHC_OPTS}" all
61 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
61 cabal v2-build -w ghc-<< parameters.ghcversion >> -j2 --enable-tests --ghc-options="${GHC_OPTS}" all 2>build.log
62+ cabal v2-test -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}" 2>build.log
62 cat build.log
63 cat build.log
63 # fail if we had warnings in local build
64 # fail if we had warnings in local build
64 # this is to work around the fact that cabal v2 doesn't allow
65 # this is to work around the fact that cabal v2 doesn't allow
65 # us to use -Werror for just local build:
66 # us to use -Werror for just local build:
66 # https://github.com/haskell/cabal/issues/4247
67 # https://github.com/haskell/cabal/issues/4247
67 ! grep -q "warning:" build.log
68 ! grep -q "warning:" build.log
68− cabal v2-test -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}" 2>build.log
69 cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
69 cabal v2-haddock -w ghc-<< parameters.ghcversion >> --ghc-options="${GHC_OPTS}"
70 cabal check
70 cabal check