Skip to content

Commit

Permalink
ci: Run postgrest-test-doctests without nix-shell
Browse files Browse the repository at this point in the history
Resolves #3183
  • Loading branch information
wolfgangwalther committed Feb 27, 2024
1 parent 2479e0d commit a1480c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

- name: Run doctests
if: always()
run: nix-shell --run postgrest-test-doctests
run: postgrest-test-doctests

- name: Check the spec tests for idempotence
if: always()
Expand Down
2 changes: 2 additions & 0 deletions nix/tools/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ let
withEnv = postgrest.env;
}
''
# This makes nix-env -iA tests.doctests.bin work.
export NIX_GHC=${postgrest.env.NIX_GHC}
${cabal-install}/bin/cabal v2-run ${devCabalOptions} test:doctests
'';

Expand Down

0 comments on commit a1480c7

Please sign in to comment.