diff options
-rw-r--r-- | .github/workflows/haskell-ci.yaml | 1 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | makefile | 4 |
3 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/haskell-ci.yaml b/.github/workflows/haskell-ci.yaml index d70816cc..2ad857fd 100644 --- a/.github/workflows/haskell-ci.yaml +++ b/.github/workflows/haskell-ci.yaml @@ -45,6 +45,7 @@ jobs: path: | ~/.stack $GITHUB_WORKSPACE/.stack-work + $GITHUB_WORKSPACE/.stack-work-test $GITHUB_WORKSPACE/examples/t10k-images-idx3-ubyte $GITHUB_WORKSPACE/examples/t10k-labels-idx1-ubyte @@ -11,6 +11,7 @@ test-script.cd .stack-work-opt .stack-work-dbg .stack-work-prof +.stack-work-test .stack-work-ffis garbage.hs *.lock @@ -221,8 +221,10 @@ doc-lib-names = $(lib-names:%=doc/lib/%.html) tests: unit-tests quine-tests repl-test module-tests +# Keep the unit tests in their own working directory too, due to +# https://github.com/commercialhaskell/stack/issues/4977 unit-tests: - $(STACK) test $(STACK_FLAGS) + $(STACK) test --work-dir .stack-work-test $(STACK_FLAGS) quine-tests: $(quine-test-targets) |