ci: Enable -Werror

We don't want to ignore warnings do we?
This commit is contained in:
Tomas Janousek
2021-03-29 16:43:58 +01:00
parent 22b579bd14
commit 5cdf428f55
4 changed files with 28 additions and 7 deletions

View File

@@ -136,6 +136,8 @@ jobs:
echo "package xmonad" >> cabal.project
echo " ghc-options: -Werror=missing-methods" >> cabal.project
cat >> cabal.project <<EOF
package xmonad
flags: +pedantic
EOF
$HCPKG list --simple-output --names-only | perl -ne 'for (split /\s+/) { print "constraints: $_ installed\n" unless /^(xmonad)$/; }' >> cabal.project.local
cat cabal.project

View File

@@ -65,4 +65,5 @@ jobs:
set -ex
stack test \
--fast --no-terminal \
--resolver=${{ matrix.resolver }} --system-ghc
--resolver=${{ matrix.resolver }} --system-ghc \
--flag=xmonad:pedantic