Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! [#164] Add workflow for run…
Browse files Browse the repository at this point in the history
…ning Windows tests on CI
  • Loading branch information
Sorokin-Anton committed Nov 10, 2022
1 parent 8296ede commit bbdf5ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion exec/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ import Universum

import Data.ByteString qualified as BS
import Main.Utf8 (withUtf8)
import System.IO.CodePage (withCP65001)

import Xrefcheck.CLI (Command (..), getCommand)
import Xrefcheck.Command (defaultAction)
import Xrefcheck.Config (defConfigText)

main :: IO ()
main = withUtf8 $ do
main = withUtf8 $ withCP65001 $ do
command <- getCommand
case command of
DefaultCommand options ->
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ library:
- yaml
- reflection
- nyan-interpolation
- code-page

executables:
xrefcheck:
Expand All @@ -131,6 +130,7 @@ executables:
- bytestring
- universum
- with-utf8
- code-page

tests:
xrefcheck-tests:
Expand Down
3 changes: 1 addition & 2 deletions src/Xrefcheck/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import Fmt (build, fmt, fmtLn)
import System.Console.Pretty (supportsPretty)
import System.Directory (doesFileExist)
import Text.Interpolation.Nyan
import System.IO.CodePage (withCP65001)

import Xrefcheck.CLI (Options (..), addExclusionOptions, addNetworkingOptions, defaultConfigPaths)
import Xrefcheck.Config
Expand Down Expand Up @@ -48,7 +47,7 @@ findFirstExistingFile = \case
if exists then pure (Just file) else findFirstExistingFile files

defaultAction :: Options -> IO ()
defaultAction Options{..} = withCP65001 $ do
defaultAction Options{..} = do
coloringSupported <- supportsPretty
give (if coloringSupported then oColorMode else WithoutColors) $ do
config <- case oConfigPath of
Expand Down
2 changes: 1 addition & 1 deletion src/Xrefcheck/System.hs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import GHC.IO.Unsafe (unsafePerformIO)
import System.Directory (canonicalizePath)
import System.Environment (lookupEnv)
import System.FilePath.Glob qualified as Glob
import Text.Interpolation.Nyan
import System.FilePath.Posix (isRelative, (</>))
import Text.Interpolation.Nyan

import Xrefcheck.Util (normaliseWithNoTrailing)

Expand Down
2 changes: 1 addition & 1 deletion tests/golden/helpers.bash
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ assert_diff() {
: "{output_file?}"

diff $output_file $1 \
--ignore-tab-expansion
--ignore-tab-expansion \
--strip-trailing-cr
}

0 comments on commit bbdf5ee

Please sign in to comment.