File tree 3 files changed +7
-7
lines changed
plugins/hls-eval-plugin/test
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ jobs:
170
170
name : Test hls-class-plugin
171
171
run : cabal test hls-class-plugin --test-options="-j1 --rerun-update" || cabal test hls-class-plugin --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-class-plugin --test-options="-j1 --rerun"
172
172
173
- - if : ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test && matrix.ghc == '9.0.1' }}
173
+ - if : ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.test && matrix.ghc }}
174
174
name : Test hls-eval-plugin
175
175
run : cabal test hls-eval-plugin --test-options="-j1 --rerun-update" || cabal test hls-eval-plugin --test-options="-j1 --rerun" || LSP_TEST_LOG_COLOR=0 LSP_TEST_LOG_MESSAGES=true LSP_TEST_LOG_STDERR=true cabal test hls-eval-plugin --test-options="-j1 --rerun"
176
176
Original file line number Diff line number Diff line change 9
9
"hls-fourmolu-plugin"
10
10
"hls-splice-plugin"
11
11
"hls-ormolu-plugin"
12
- "hls-eval-plugin"
13
12
"hls-class-plugin"
14
13
"hls-refine-imports-plugin"
15
14
] ;
106
105
( pkgs . lib . concatStringsSep " " [
107
106
"-f-brittany"
108
107
"-f-class"
109
- "-f-eval"
110
108
"-f-fourmolu"
111
109
"-f-ormolu"
112
110
"-f-splice"
Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ import System.FilePath ((</>))
20
20
import Test.Hls
21
21
22
22
main :: IO ()
23
- main = defaultTestRunner $ if ghcVersion == GHC901 then tests else dummyTestCase
23
+ main = defaultTestRunner $ ignore tests
24
24
25
- -- | Now we only maintain test cases for GHC 9.0.1
26
- dummyTestCase :: TestTree
27
- dummyTestCase = testCase " Tests are skipped before GHC 9.0.1" $ pure ()
25
+ ignore :: TestTree -> TestTree
26
+ ignore =
27
+ if ghcVersion == GHC901
28
+ then id
29
+ else ignoreTestBecause " Eval plugin tests are enabled for GHC 9.0.1"
28
30
29
31
evalPlugin :: PluginDescriptor IdeState
30
32
evalPlugin = Eval. descriptor " eval"
You can’t perform that action at this time.
0 commit comments