diff --git a/nix/scripts/run-ci-tests.nix b/nix/scripts/run-ci-tests.nix index 8563bef472f2a9d3b621224a40b70b51b1650823..301724fa7e0d03b4d88ae597d03d83c7e767f03d 100644 --- a/nix/scripts/run-ci-tests.nix +++ b/nix/scripts/run-ci-tests.nix @@ -11,6 +11,13 @@ in echo_header "Running CI tests" setup_go_env + if [[ -f "assets/test.env" ]]; then + echo_hint "Loading test environment variables" + set -a + source "assets/test.env" + set +a + fi + echo_section "Running tests" cd ${./../..} || (echo_fail "Failed to cd to application source" && exit 1) if ! CGO_CFLAGS="-Wno-format-security" ${pkgs'.go}/bin/go test -tags "runOnTask" ./...