File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -25,16 +25,23 @@ jobs:
2525 path : ~/.stack
2626 key : ${{ runner.os }}-stack
2727
28+ - name : Install direnv
29+ run : |
30+ curl -sfL https://direnv.net/install.sh | bash
31+ echo "$HOME/.local/bin" >> $GITHUB_PATH
32+ - name : Allow direnv
33+ run : direnv allow
34+
2835 - name : Build
2936 run : |
30- # stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
37+ eval "$(direnv export bash)"
3138 export NIX_PATH="nixpkgs=$(nix run .#nixpkgsPath)"
3239 echo "NIX_PATH: $NIX_PATH"
3340 nix run .#stack -- build --nix --test --bench --no-run-tests --no-run-benchmarks
3441
3542 - name : Test
3643 run : |
37- # stack test --system-ghc --test-arguments --print
44+ eval "$(direnv export bash)"
3845 export NIX_PATH="nixpkgs=$(nix run .#nixpkgsPath)"
3946 echo "NIX_PATH: $NIX_PATH"
4047 nix run .#stack -- test --nix --test-arguments --print
You can’t perform that action at this time.
0 commit comments