Skip to content

Commit fe2d32c

Browse files
committed
ci: try enabling direnv
1 parent c19843f commit fe2d32c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)