v6.1.0 - 2024/01/31 #60
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
terraform_version: | |
- 1.7.1 | |
- 1.7.0 | |
- 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: Install tfenv | |
run: | | |
git clone https://github.com/tfutils/tfenv.git $HOME/.tfenv | |
echo "$HOME/.tfenv/bin" >> $GITHUB_PATH | |
- name: Install Terraform v${{ matrix.terraform_version }} | |
run: | | |
echo ${{ matrix.terraform_version }} > .terraform-version | |
tfenv install ${{ matrix.terraform_version }} | |
tfenv use ${{ matrix.terraform_version }} | |
- name: Run tests | |
run: | | |
tests/tests.sh | |
- name: Capture logs | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: logs-${{ matrix.terraform_version }} | |
path: test-reports/**/* |