diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce538ef..4b74612 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,11 +38,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - directory: - - ./test_dir/project1 - - ./test_dir/project2 - - ./test_dir/project3 - - ./test_dir/project4 + include: + - directory: ./test_dir/project1 + terraform_version: 0.15.0 + - directory: ./test_dir/project2 + terraform_version: 1.3.3 + - directory: ./test_dir/project3/applications/backend-app + terraform_version: 1.2.1 + - directory: ./test_dir/project3/applications/frontend-app + terraform_version: 1.4.1 + - directory: ./test_dir/project4 + terraform_version: 1.6.1 defaults: run: working-directory: ${{ matrix.directory }} @@ -59,11 +65,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - directory: - - ./test_dir/project1 - - ./test_dir/project2 - - ./test_dir/project3 - - ./test_dir/project4 + include: + - directory: ./test_dir/project1 + terraform_version: 0.15.0 + - directory: ./test_dir/project2 + terraform_version: 1.3.3 + - directory: ./test_dir/project3/applications/backend-app + terraform_version: 1.2.1 + - directory: ./test_dir/project3/applications/frontend-app + terraform_version: 1.4.1 + - directory: ./test_dir/project4 + terraform_version: 1.6.1 defaults: run: working-directory: ${{ matrix.directory }} @@ -81,11 +93,17 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - directory: - - ./test_dir/project1 - - ./test_dir/project2 - - ./test_dir/project3 - - ./test_dir/project4 + include: + - directory: ./test_dir/project1 + terraform_version: 0.15.0 + - directory: ./test_dir/project2 + terraform_version: 1.3.3 + - directory: ./test_dir/project3/applications/backend-app + terraform_version: 1.2.1 + - directory: ./test_dir/project3/applications/frontend-app + terraform_version: 1.4.1 + - directory: ./test_dir/project4 + terraform_version: 1.6.1 defaults: run: working-directory: ${{ matrix.directory }} diff --git a/test_dir/project1/main.tf b/test_dir/project1/main.tf index 94771f7..ac78e3f 100644 --- a/test_dir/project1/main.tf +++ b/test_dir/project1/main.tf @@ -1,5 +1,5 @@ terraform { - required_version = "<=0.15" + required_version = "<~0.15" } module "gcp" {