Skip to content

Commit 270e568

Browse files
committed
feat: Added integration test excution for remote envs
1 parent 7daa53a commit 270e568

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/cd-base.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,12 @@ jobs:
117117
working-directory: terraform
118118
run: terraform apply tfplan
119119

120-
- name: Get db public IP
120+
- name: Get Terraform outputs
121121
id: db
122122
working-directory: terraform
123-
run: echo "public_ip=$(terraform output -raw db_host)" >> $GITHUB_OUTPUT
123+
run: |
124+
echo "public_ip=$(terraform output -raw db_host)" >> $GITHUB_OUTPUT
125+
echo "api_url=$(terraform output -raw cloud_run_service_url)" >> $GITHUB_OUTPUT
124126
125127
- name: Check if tickets table exists
126128
id: check_table
@@ -158,3 +160,11 @@ jobs:
158160
- name: Skipped table creation (existent tickets table)
159161
if: steps.check_table.outputs.table_exist == 't'
160162
run: echo ""
163+
164+
run-integration-tests:
165+
needs: deploy
166+
uses: ./.github/workflows/integration-tests.yml
167+
with:
168+
deployment_env: ${{ inputs.deployment_env }}
169+
db_host: ${{ steps.db.outputs.public_ip }}
170+
api_url: ${{ steps.db.outputs.api_url }}

0 commit comments

Comments
 (0)