From 36d6f93a8f2801323ab8a4e24826e542bfe22c5c Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Sat, 28 Sep 2024 18:07:59 +0200 Subject: [PATCH] chore: update config --- nix/scripts/run-ci-tests.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nix/scripts/run-ci-tests.nix b/nix/scripts/run-ci-tests.nix index 8563bef..301724f 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" ./... -- GitLab