Test Suite #46
Workflow file for this run
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
name: 'Test Suite' | |
on: | |
workflow_dispatch: | |
inputs: | |
terraform_matrix: | |
description: 'Terraform matrix version (JSON array)' | |
default: '["1.6.x", "1.5.x", "1.4.x", "1.3.x", "1.2.x"]' | |
provider_matrix: | |
description: 'MongoDB Atlas Provider matrix version (JSON array)' | |
default: '["", "1.12.3"]' # "" for latest version | |
schedule: | |
- cron: "0 0 * * *" # workflow runs every day at midnight UTC | |
concurrency: | |
group: '${{ github.workflow }}' | |
cancel-in-progress: false | |
jobs: | |
versions: | |
env: | |
schedule_terraform_matrix: '["1.6.x", "1.0.8"]' | |
schedule_provider_matrix: '["", "1.12.3]' # "" for latest version | |
runs-on: ubuntu-latest | |
outputs: | |
terraform_matrix: ${{ inputs.terraform_matrix || vars.schedule_terraform_matrix }} | |
provider_matrix: ${{ inputs.provider_matrix || vars.schedule_provider_matrix }} | |
steps: | |
- if: false | |
run: echo jobs need steps | |
clean-before: | |
secrets: inherit | |
uses: ./.github/workflows/cleanup-test-env.yml | |
mig-tests: | |
needs: [clean-before, versions] | |
if: ${{ !cancelled() }} | |
strategy: | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
terraform_version: ${{ fromJSON(needs.versions.outputs.terraform_matrix) }} | |
provider_version: ${{ fromJSON(needs.versions.outputs.provider_matrix) }} | |
name: mig-tests-${{ matrix.terraform_version || 'latest' }}-${{ matrix.provider_version || 'latest' }} | |
secrets: inherit | |
uses: ./.github/workflows/migration-tests.yml | |
with: | |
terraform_version: ${{ matrix.terraform_version }} | |
provider_version: ${{ matrix.provider_version }} | |
acc-tests: | |
needs: [mig-tests, versions] | |
if: ${{ !cancelled() }} | |
strategy: | |
max-parallel: 1 | |
fail-fast: false | |
matrix: | |
terraform_version: ${{ fromJSON(needs.versions.outputs.terraform_matrix) }} | |
name: acc-tests-${{ matrix.terraform_version || 'latest' }} | |
secrets: inherit | |
uses: ./.github/workflows/acceptance-tests.yml | |
with: | |
terraform_version: ${{ matrix.terraform_version }} | |
clean-after: | |
needs: acc-tests | |
if: ${{ !cancelled() }} | |
secrets: inherit | |
uses: ./.github/workflows/cleanup-test-env.yml | |