File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
.github/actions/setup-build Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 4444 echo "CABAL_PKGS_DIR=C:\\cabal\\packages" >> $GITHUB_ENV
4545 shell : bash
4646
47+ - if : inputs.os == 'Windows'
48+ name : (Windows) Platform config (root test directory)
49+ run : |
50+ mkdir C:\\hls-tests
51+ echo "HLS_TEST_ROOTDIR=C:\\hls-tests" >> $GITHUB_ENV
52+ shell : bash
53+
4754 - if : ( inputs.os == 'Linux' ) || ( inputs.os == 'macOS' )
4855 name : (Linux,macOS) Platform config
4956 run : |
Original file line number Diff line number Diff line change @@ -608,10 +608,16 @@ instance Default (TestConfig b) where
608608-- However, it is totally safe to delete the directory between runs.
609609setupTestEnvironment :: IO FilePath
610610setupTestEnvironment = do
611- tmpDirRoot <- getTemporaryDirectory
612- let testRoot = tmpDirRoot </> " hls-tests"
613- createDirectoryIfMissing True testRoot
614- pure testRoot
611+ mRootDir <- lookupEnv " HLS_TEST_ROOTDIR"
612+ case mRootDir of
613+ Nothing -> do
614+ tmpDirRoot <- getTemporaryDirectory
615+ let testRoot = tmpDirRoot </> " hls-test-root"
616+ createDirectoryIfMissing True testRoot
617+ pure testRoot
618+ Just rootDir -> do
619+ createDirectoryIfMissing True rootDir
620+ pure rootDir
615621
616622goldenWithHaskellDocFormatter
617623 :: Pretty b
You can’t perform that action at this time.
0 commit comments