Skip to content

Commit

Permalink
chore: e2e tests validate the alz module installs latest terraform or…
Browse files Browse the repository at this point in the history
… upgrades 1.5 (#64)

<!-- Thank you for submitting a Pull Request. Please fill out the
template below.-->
## Overview/Summary

Updates the end to end tests for provide more comprehensive coverage of
Terraform CLI install and upgrade process with ALZ PowerShell module

## This PR fixes/adds/changes/removes

N/A

### Breaking Changes

None

## Testing Evidence

End to end tests should pass.

## As part of this Pull Request I have

- [x] Checked for duplicate [Pull
Requests](https://github.com/Azure/alz-terraform-accelerator/pulls)
- [x] Associated it with relevant
[issues](https://github.com/Azure/alz-terraform-accelerator/issues), for
tracking and closure.
- [x] Ensured my code/branch is up-to-date with the latest changes in
the `main`
[branch](https://github.com/Azure/alz-terraform-accelerator/tree/main)
- [x] Performed testing and provided evidence.
- [x] Updated relevant and associated documentation.
  • Loading branch information
jaredfholgate authored Dec 11, 2023
1 parent 115ab56 commit 24a69b6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/end-to-end-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: false
matrix:
operatingSystem: ['ubuntu-latest', 'windows-latest', 'macos-latest']
terraform_version: ['latest', '1.6.0']
terraform_version: ['latest', '1.5.0']
versionControlSystem: ['github', 'azuredevops']
authScheme: ['ManagedServiceIdentity', 'WorkloadIdentityFederation']
exclude:
Expand All @@ -42,6 +42,7 @@ jobs:
with:
terraform_version: ${{ matrix.terraform_version }}
terraform_wrapper: false
if: ${{ matrix.terraform_version != 'latest' }}

- name: Setup ALZ Module Inputs
run: |
Expand Down Expand Up @@ -158,6 +159,13 @@ jobs:
ARM_CLIENT_ID: ${{ vars.ARM_CLIENT_ID }}
ARM_USE_OIDC: true

- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: "latest"
terraform_wrapper: false
if: always()

- name: Run Terraform Destroy to Clean Up
if: always()
run: |
Expand Down

0 comments on commit 24a69b6

Please sign in to comment.