fix: adjust acceptance test action
[skip ci]
This commit is contained in:
parent
3682d40a05
commit
4e77ffb124
1 changed files with 4 additions and 1 deletions
5
.github/actions/acc_test/action.yaml
vendored
5
.github/actions/acc_test/action.yaml
vendored
|
|
@ -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 == '' }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue