Skip to content

Merge pull request #28 from ajax-ryzhyi-r/add-retries-variable #119

Merge pull request #28 from ajax-ryzhyi-r/add-retries-variable

Merge pull request #28 from ajax-ryzhyi-r/add-retries-variable #119

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
terraform_version:
- 1.12.2
- 1.11.3
- 1.10.5
- 1.9.8
- 1.8.5
- 1.7.5
- 1.6.6
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: Update the test result for 1 file
run: |
AWS_CLI_VERSION=$(aws --version) envsubst '\$AWS_CLI_VERSION' < tests/test_version_retrieval_will_error/expected_apply_outputs.json > temp.json
mv -f temp.json tests/test_version_retrieval_will_error/expected_apply_outputs.json
- 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/**/*