-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef48440
commit 99ea557
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: IaC Acceptance Tests for CI CD Prod Environment | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
acc-test: | ||
uses: ./.github/workflows/reusable-dev-acc.yml | ||
with: | ||
test_description: Check all Terraform Testcases | ||
test_case_folder: 'acc-testcases' | ||
secrets: | ||
DEV_HPEGL_IAM_SERVICE_URL: ${{ secrets.HPEGL_IAM_SERVICE_URL }} | ||
DEV_HPEGL_TENANT_ID: ${{ secrets.HPEGL_TENANT_ID }} | ||
DEV_HPEGL_USER_SECRET: ${{ secrets.HPEGL_USER_SECRET }} | ||
DEV_HPEGL_USER_ID: ${{ secrets.HPEGL_USER_ID }} | ||
DEV_HPEGL_VMAAS_API_URL: ${{ secrets.HPEGL_VMAAS_API_URL }} | ||
DEV_HPEGL_VMAAS_LOCATION: ${{ secrets.HPEGL_VMAAS_LOCATION }} | ||
DEV_HPEGL_VMAAS_SPACE_NAME: ${{ secrets.HPEGL_VMAAS_SPACE_NAME}} | ||
TF_ACC: ${{ secrets.TF_ACC }} | ||
|
||
process-logs: | ||
runs-on: ubuntu-20.04 | ||
needs: | ||
- acc-test | ||
if: "always()" | ||
steps: | ||
- name: Checkout workspace | ||
uses: actions/checkout@v4 | ||
- name: Download logs | ||
id: logs | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: tmp/artifacts | ||
merge-multiple: true | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
- name: Print Result and Publish | ||
run: | | ||
LOG_RESULT=$(python .github/parse_logs.py '${{ steps.logs.outputs.download-path }}') | ||
echo $LOG_RESULT |