File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
plugins/hls-eval-plugin/test Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ jobs:
170170 name : Test hls-class-plugin
171171 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"
172172
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 }}
174174 name : Test hls-eval-plugin
175175 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"
176176
Original file line number Diff line number Diff line change 99 "hls-fourmolu-plugin"
1010 "hls-splice-plugin"
1111 "hls-ormolu-plugin"
12- "hls-eval-plugin"
1312 "hls-class-plugin"
1413 "hls-refine-imports-plugin"
1514 ] ;
106105 ( pkgs . lib . concatStringsSep " " [
107106 "-f-brittany"
108107 "-f-class"
109- "-f-eval"
110108 "-f-fourmolu"
111109 "-f-ormolu"
112110 "-f-splice"
Original file line number Diff line number Diff line change @@ -20,11 +20,13 @@ import System.FilePath ((</>))
2020import Test.Hls
2121
2222main :: IO ()
23- main = defaultTestRunner $ if ghcVersion == GHC901 then tests else dummyTestCase
23+ main = defaultTestRunner $ ignore tests
2424
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"
2830
2931evalPlugin :: PluginDescriptor IdeState
3032evalPlugin = Eval. descriptor " eval"
You can’t perform that action at this time.
0 commit comments