Skip to content

Commit

Permalink
chore: Uses only latest provider version for Test Suite workflow (#1777)
Browse files Browse the repository at this point in the history
* 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 57eea3f.

* fix use env variables

* Revert "TEMPORARY:  test empty inputs"

This reverts commit dfae31e.
  • Loading branch information
lantoli authored Dec 20, 2023
1 parent bdde468 commit f302d2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/migration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f302d2e

Please sign in to comment.