Skip to content

Commit c818456

Browse files
chore: Skips Stream test group when running in QA (#1810)
1 parent f6404fa commit c818456

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/acceptance-tests-runner.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
description: 'The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch'
1717
type: string
1818
required: false
19+
atlas_cloud_env:
20+
description: 'Atlas cloud environment used, can be either `dev` or `qa`, empty for `dev`'
21+
type: string
22+
required: false
1923

2024
mongodb_atlas_org_id:
2125
type: string
@@ -268,7 +272,7 @@ jobs:
268272

269273
stream:
270274
needs: [ change-detection ]
271-
if: ${{ needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream' }}
275+
if: ${{ inputs.atlas_cloud_env != 'qa' && (needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream') }}
272276
runs-on: ubuntu-latest
273277
steps:
274278
- uses: actions/checkout@v4

.github/workflows/acceptance-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ jobs:
5353
terraform_version: ${{ inputs.terraform_version || vars.TF_VERSION_LATEST }}
5454
ref: ${{ inputs.ref }}
5555
test_group: ${{ inputs.test_group }}
56+
atlas_cloud_env: ${{ inputs.atlas_cloud_env }}
5657
mongodb_atlas_org_id: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }}
5758
mongodb_atlas_org_id_network: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV_NETWORK }}
5859
mongodb_atlas_project_id_network: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_QA || vars.MONGODB_ATLAS_PROJECT_ID_CLOUD_DEV_NETWORK }}

0 commit comments

Comments
 (0)