From 7f768c7886f72692307ee4c3fbb78da2aec5ed7c Mon Sep 17 00:00:00 2001 From: dantecatalfamo Date: Wed, 8 Jan 2025 16:22:37 -0500 Subject: [PATCH] Arg wasn't in the env --- .github/workflows/test-go.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-go.yaml b/.github/workflows/test-go.yaml index 162f4f54291d..d525ce7c8dab 100644 --- a/.github/workflows/test-go.yaml +++ b/.github/workflows/test-go.yaml @@ -118,15 +118,20 @@ jobs: - name: Run Go Tests run: | if [[ "${{ matrix.suite }}" == "core" ]]; then - CI_TEST_PKG=main RUN_TESTS_ARG='-skip=^TestIntegrations' + CI_TEST_PKG=main + RUN_TESTS_ARG='-skip=^TestIntegrations' elif [[ "${{ matrix.suite }}" == "integration" ]]; then - CI_TEST_PKG=main RUN_TESTS_ARG='-run=^TestIntegrations' + CI_TEST_PKG=main + RUN_TESTS_ARG='-run=^TestIntegrations' elif [[ "${{ matrix.suite }}" == "fleetctl" ]]; then - CI_TEST_PKG=fleetctl RUN_TESTS_ARG='' + CI_TEST_PKG=fleetctl + RUN_TESTS_ARG='' elif [[ "${{ matrix.suite }}" == "migration" ]]; then - CI_TEST_PKG=migration RUN_TESTS_ARG='' + CI_TEST_PKG=migration + RUN_TESTS_ARG='' elif [[ "${{ matrix.suite }}" == "vuln" ]]; then - CI_TEST_PKG=vuln RUN_TESTS_ARG='' + CI_TEST_PKG=vuln + RUN_TESTS_ARG='' fi GO_TEST_EXTRA_FLAGS="-v -race=$RACE_ENABLED -timeout=$GO_TEST_TIMEOUT $RUN_TESTS_ARG" \ TEST_LOCK_FILE_PATH=$(pwd)/lock \ @@ -139,6 +144,7 @@ jobs: SAML_IDP_TEST=1 \ MAIL_TEST=1 \ NETWORK_TEST_GITHUB_TOKEN=${{ secrets.FLEET_RELEASE_GITHUB_PAT }} \ + CI_TEST_PKG="$(CI_TEST_PKG)" \ make test-go 2>&1 | tee /tmp/gotest.log - name: Create mysql identifier without colon