Skip to content

Commit 7115aad

Browse files
authored
Merge pull request #2083 from tweag/cg/run_nix_shell_with_der_path
chore: refactor to use `working-directory` and `derivation-path` in `run-nix-shell`
2 parents f13ebfd + 043dfd0 commit 7115aad

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/workflow.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ jobs:
110110
with:
111111
options: ${{ env.NIX_SHELL_ARGS }}
112112
run: |
113-
set -euo pipefail
114113
bazel test //...
115114
bazel build //docs:api_html
116115
bazel build //docs:guide_html
@@ -119,18 +118,15 @@ jobs:
119118
uses: tweag/run-nix-shell@v0
120119
with:
121120
options: ${{ env.NIX_SHELL_ARGS }}
122-
run: |
123-
set -euo pipefail
124-
cd rules_haskell_nix
125-
bazel test //...
121+
working-directory: rules_haskell_nix
122+
run: bazel test //...
126123
- name: Build & test - rules_haskell_tests
127124
if: matrix.module == 'rules_haskell_tests'
128125
uses: tweag/run-nix-shell@v0
129126
with:
130127
options: ${{ env.NIX_SHELL_ARGS }}
128+
working-directory: rules_haskell_tests
131129
run: |
132-
set -euo pipefail
133-
cd rules_haskell_tests
134130
# XXX run start script `--with-bzlmod=true` when supported
135131
if ! ${{ matrix.bzlmod }}; then
136132
./tests/run-start-script.sh --use-nix --with-bzlmod=${{ matrix.bzlmod }}

0 commit comments

Comments
 (0)