diff --git a/.github/workflows/acceptance-tests-runner.yml b/.github/workflows/acceptance-tests-runner.yml index 2e97fa9377..f87b398fae 100644 --- a/.github/workflows/acceptance-tests-runner.yml +++ b/.github/workflows/acceptance-tests-runner.yml @@ -16,6 +16,10 @@ on: description: 'The branch, tag or SHA where tests will run, e.g. v1.14.0, empty for default branch' type: string required: false + atlas_cloud_env: + description: 'Atlas cloud environment used, can be either `dev` or `qa`, empty for `dev`' + type: string + required: false mongodb_atlas_org_id: type: string @@ -268,7 +272,7 @@ jobs: stream: needs: [ change-detection ] - if: ${{ needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream' }} + if: ${{ inputs.atlas_cloud_env != 'qa' && (needs.change-detection.outputs.stream == 'true' || inputs.test_group == 'stream') }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 2a5b044f64..8de118c045 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -53,6 +53,7 @@ jobs: terraform_version: ${{ inputs.terraform_version || vars.TF_VERSION_LATEST }} ref: ${{ inputs.ref }} test_group: ${{ inputs.test_group }} + atlas_cloud_env: ${{ inputs.atlas_cloud_env }} mongodb_atlas_org_id: ${{ inputs.atlas_cloud_env == 'qa' && vars.MONGODB_ATLAS_ORG_ID_CLOUD_QA || vars.MONGODB_ATLAS_ORG_ID_CLOUD_DEV }} 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 }} 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 }}