Skip to content

Commit 05112d0

Browse files
committed
chore: add wait time on test workflow
Update workflow to use 'Check and Build QA' and add wait 5mins for deployment completion
1 parent 701bff8 commit 05112d0

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/test_backend.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
- "preprod"
3232

3333
workflow_run:
34-
workflows: ["Build and deploy GovTool test stack"]
34+
workflows: ["Check and Build QA"]
3535
types: [completed]
3636
branches:
3737
- test
@@ -52,6 +52,11 @@ jobs:
5252
start_time: ${{ steps.set-pending-status.outputs.timestamp }}
5353
status: ${{ steps.run-tests.outcome }}
5454
steps:
55+
- name: Wait for qa deployment to complete
56+
if: ${{ github.event_name == 'workflow_run' }}
57+
run: |
58+
echo "Waiting for the deployment to be ready..."
59+
sleep 300
5560
- name: Checkout code
5661
uses: actions/checkout@v4
5762
with:

.github/workflows/test_integration_playwright.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ on:
3131
- "preprod"
3232

3333
workflow_run:
34-
workflows: ["Build and deploy GovTool test stack"]
34+
workflows: ["Check and Build QA"]
3535
types: [completed]
3636
branches:
3737
- test
@@ -55,6 +55,11 @@ jobs:
5555
run:
5656
working-directory: tests/govtool-frontend/playwright
5757
steps:
58+
- name: Wait for qa deployment to complete
59+
if: ${{ github.event_name == 'workflow_run' }}
60+
run: |
61+
echo "Waiting for the deployment to be ready..."
62+
sleep 300
5863
- uses: actions/checkout@v4
5964
with:
6065
ref: ${{ env.COMMIT_SHA }}

0 commit comments

Comments
 (0)