From b5693f2d9f57852c8508fde05fbe6ea228fbff7d Mon Sep 17 00:00:00 2001 From: miampf Date: Fri, 10 May 2024 13:12:28 +0200 Subject: [PATCH] cd to directory in the bazel build workspace TODO --- .github/actions/e2e_mini/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/actions/e2e_mini/action.yml b/.github/actions/e2e_mini/action.yml index d133d7f6f..48f916ae9 100644 --- a/.github/actions/e2e_mini/action.yml +++ b/.github/actions/e2e_mini/action.yml @@ -48,6 +48,8 @@ runs: ARM_TENANT_ID: ${{ inputs.azureTenantID }} run: | bazel run --test_timeout=14400 //e2e/miniconstellation:push_remote_test + # TODO: Replace and test with BUILD_WORKING_DIRECTORY + echo "bazel-workspace-dir=$BUILD_WORKSPACE_DIRECTORY" >> $GITHUB_OUTPUT - name: Log in to azure # only log in if e2e test failed or if the run was cancelled @@ -61,7 +63,7 @@ runs: # clean up if e2e test failed or if the run was cancelled if: (failure() && steps.e2e-test.conclusion == 'failure') || cancelled() run: | - cd e2e/miniconstellation + cd ${{ steps.e2e-test.outputs.bazel-workspace-dir }}/e2e/miniconstellation terraform init rg_name=$(terraform output -raw rg_name) echo "[*] Deleting resource group $rg_name"