diff --git a/.github/actions/acc_test/action.yaml b/.github/actions/acc_test/action.yaml index 898e18d1..95c98861 100644 --- a/.github/actions/acc_test/action.yaml +++ b/.github/actions/acc_test/action.yaml @@ -143,6 +143,7 @@ runs: - name: Creating service_account file from json input if: inputs.service_account_json_content != '' + id: service_account shell: bash run: | echo "::group::create service account file" @@ -161,6 +162,7 @@ runs: echo "${{ inputs.service_account_json_content }}" > stackit/"${{ inputs.service_account_json_file_path }}" fi ls -l stackit/"${{ inputs.service_account_json_file_path }}" + echo "safilepath=${PWD}/stackit/${{ inputs.service_account_json_file_path }}" >> "$GITHUB_OUTPUT" echo "::endgroup::" - name: Creating service_account file from base64 json input @@ -226,10 +228,11 @@ runs: TF_ACC_KEK_KEY_RING_ID: ${{ inputs.tf_acc_kek_key_ring_id }} TF_ACC_KEK_KEY_VERSION: ${{ inputs.tf_acc_kek_key_version }} TF_ACC_KEK_SERVICE_ACCOUNT: ${{ inputs.tf_acc_kek_service_account }} - TF_ACC_SERVICE_ACCOUNT_FILE: "${PWD}/${{ inputs.service_account_json_file_path }}" + TF_ACC_SERVICE_ACCOUNT_FILE: ${{ steps.service_account.outputs.safile }} uses: robherley/go-test-action@v0 with: testArguments: "./... -timeout ${{ inputs.test_timeout_string }}" + moduleDirectory: "stackit" - name: Run acceptance tests if: ${{ inputs.test_file == '' }}