From f302d2ebd320108da510989e68127143d27cae1e Mon Sep 17 00:00:00 2001 From: Leo Antoli <430982+lantoli@users.noreply.github.com> Date: Wed, 20 Dec 2023 22:55:45 +0100 Subject: [PATCH] chore: Uses only latest provider version for Test Suite workflow (#1777) * run scheduled migration tests only for latest versionmi * clarify provider_version version description * TEMPORARY: test empty inputs * TEMPORARY use vars directly * Revert "TEMPORARY use vars directly" This reverts commit 57eea3f3e57f92e65c405c2922dfff925b0498d7. * fix use env variables * Revert "TEMPORARY: test empty inputs" This reverts commit dfae31ec21ecedb39e6e358cfe60daca599a9ec6. --- .github/workflows/migration-tests.yml | 2 +- .github/workflows/test-suite.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/migration-tests.yml b/.github/workflows/migration-tests.yml index ef95961899..1ac19eea88 100644 --- a/.github/workflows/migration-tests.yml +++ b/.github/workflows/migration-tests.yml @@ -22,7 +22,7 @@ on: type: string required: false provider_version: - description: 'MongoDB Atlas Provider version to use, empty for latest' + description: 'MongoDB Atlas Provider version for running migration tests, empty for latest' type: string required: false diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index c1fd8b0b6a..45432acc6b 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -8,7 +8,7 @@ on: default: '["1.6.x", "1.5.x", "1.4.x", "1.3.x", "1.2.x"]' provider_matrix: description: 'MongoDB Atlas Provider version matrix for running migration tests (JSON array)' - default: '["", "1.12.3"]' # "" for latest version + default: '[""]' # "" for latest version schedule: - cron: "0 0 * * *" # workflow runs every day at midnight UTC @@ -21,11 +21,11 @@ jobs: versions: env: schedule_terraform_matrix: '["1.6.x", "1.0.8"]' - schedule_provider_matrix: '["", "1.12.3]' # "" for latest version + schedule_provider_matrix: '[""]' # "" 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 }} + terraform_matrix: ${{ inputs.terraform_matrix || env.schedule_terraform_matrix }} + provider_matrix: ${{ inputs.provider_matrix || env.schedule_provider_matrix }} steps: - if: false run: echo jobs need steps