Skip to content

Drop < 1.6 and test all 1.6.x #47

Drop < 1.6 and test all 1.6.x

Drop < 1.6 and test all 1.6.x #47

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version: [
1.6.6,
1.6.5,
1.6.4,
1.6.3,
1.6.2,
1.6.1,
1.6.0
]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up tfenv
run: |
git clone https://github.com/tfutils/tfenv.git $HOME/.tfenv
echo "$HOME/.tfenv/bin" >> $GITHUB_PATH
- name: Install Terraform
run: |
echo ${{ matrix.terraform_version }} > .terraform-version
cat .terraform-version
which -a aws jq tfenv terraform
tfenv install ${{ matrix.terraform_version }}
tfenv use ${{ matrix.terraform_version }}
- name: Validate versions
run: |
jq --version
aws --version
tfenv --version
terraform --version
- name: Run tests
run: |
which -a aws jq tfenv terraform
tfenv --version
terraform --version
tests/tests.sh
- name: Capture logs
uses: actions/upload-artifact@v3
if: always()
with:
name: logs-${{ matrix.terraform_version }}
path: test-reports/**/*