mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-15 16:12:35 +00:00
Adding tests for version constraints (#45)
* Adding tests for version constraints * Update test names
This commit is contained in:
parent
af8505ef0a
commit
ec552d11bc
1 changed files with 39 additions and 0 deletions
39
.github/workflows/setup-terraform.yml
vendored
39
.github/workflows/setup-terraform.yml
vendored
|
|
@ -60,6 +60,45 @@ jobs:
|
|||
if: ${{ matrix['terraform-versions'] == 'latest' }}
|
||||
run: terraform version | grep 'Terraform v'
|
||||
|
||||
terraform-versions-constraints:
|
||||
name: 'Terraform Versions Constraints'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
terraform-versions: [~0.12, 0.12.x, <0.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Terraform - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
with:
|
||||
terraform_version: ${{ matrix['terraform-versions'] }}
|
||||
|
||||
- name: Validate Teraform Version - ${{ matrix['terraform-versions'] }}
|
||||
run: terraform version | grep 'Terraform v0\.12'
|
||||
|
||||
terraform-versions-constraints-no-wrapper:
|
||||
name: 'Terraform Versions Constraints No Wrapper'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
terraform-versions: [~0.12, 0.12.x, <0.13.0]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Terraform (no wrapper) - ${{ matrix['terraform-versions'] }}
|
||||
uses: ./
|
||||
with:
|
||||
terraform_version: ${{ matrix['terraform-versions'] }}
|
||||
terraform_wrapper: false
|
||||
|
||||
- name: Validate Teraform Version - ${{ matrix['terraform-versions'] }}
|
||||
run: terraform version | grep 'Terraform v0\.12'
|
||||
|
||||
terraform-credentials-cloud:
|
||||
name: 'Terraform Cloud Credentials'
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue