Skip to content

Commit cd3c8d5

Browse files
committed
Disable hlint test for github runners
1 parent 90c8ef5 commit cd3c8d5

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/haskell.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: Build
4343
run: cabal build --enable-tests --enable-benchmarks all
4444
- name: Run tests
45-
run: cabal test --enable-tests all
45+
# We don't run hlint tests, because different versions of hlint have different suggestions, and we don't want to worry about satisfying them all.
46+
run: cabal test --enable-tests -f-hlint all
4647
- name: Build Docs
4748
run: cabal haddock

patch.cabal

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ flag split-these
3030
manual: False
3131
default: True
3232

33+
flag hlint
34+
description: Enable hlint test
35+
default: True
36+
3337
library
3438
hs-source-dirs: src
3539
default-language: Haskell2010
@@ -95,7 +99,7 @@ test-suite hlint
9599
, filepath
96100
, filemanip
97101
, hlint (< 2.1 || >= 2.2.2) && < 3.5
98-
if impl(ghcjs)
102+
if impl(ghcjs) || !flag(hlint)
99103
buildable: False
100104

101105
source-repository head

0 commit comments

Comments
 (0)