From a1480c758ecf936031720e88123926e9a52b6072 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 26 Feb 2024 22:18:16 +0100 Subject: [PATCH] ci: Run postgrest-test-doctests without nix-shell Resolves #3183 --- .github/workflows/test.yaml | 2 +- nix/tools/tests.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1524f9fce..30d7b08ad 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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() diff --git a/nix/tools/tests.nix b/nix/tools/tests.nix index 940130890..4606b1670 100644 --- a/nix/tools/tests.nix +++ b/nix/tools/tests.nix @@ -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 '';