chore: modify test action
[skip ci]
This commit is contained in:
parent
92eaf87582
commit
2d4e9c723f
3 changed files with 11 additions and 5 deletions
12
.github/actions/acc_test/action.yaml
vendored
12
.github/actions/acc_test/action.yaml
vendored
|
|
@ -71,7 +71,7 @@ outputs:
|
|||
description: "the output of the tests"
|
||||
|
||||
status:
|
||||
value: ${{ steps.testrun.status }}
|
||||
value: ${{ steps.status.status }}
|
||||
description: "the status of the tests"
|
||||
|
||||
runs:
|
||||
|
|
@ -239,10 +239,9 @@ runs:
|
|||
echo "Test failed, see acc_test_run.log for details"
|
||||
res=$(cat acc_test_run.log | grep -v "=== RUN" | grep -v "\-\-\- PASS" | grep -v "=== CONT" | grep -v "=== PAUSE")
|
||||
echo "result=FAIL: ${res}" >> "$GITHUB_OUTPUT"
|
||||
echo "status=FAILED" >> "$GITHUB_OUTPUT"
|
||||
exit 1
|
||||
else
|
||||
echo "status=SUCCESS" >> "$GITHUB_OUTPUT"
|
||||
echo "result=no FAIL detected" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
env:
|
||||
|
|
@ -254,6 +253,13 @@ runs:
|
|||
TF_ACC_KEK_KEY_VERSION: ${{ inputs.tf_acc_kek_key_version }}
|
||||
TF_ACC_KEK_SERVICE_ACCOUNT: ${{ inputs.tf_acc_kek_service_account }}
|
||||
|
||||
- name: Set status output variable
|
||||
if: always()
|
||||
id: status
|
||||
shell: bash
|
||||
run: |
|
||||
echo "status=${{ steps.testrun.outcome == 'success' && 'SUCCESS' || 'FAILURE' }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Upload test log artifact
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue