Refactor/internal structure #7
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: Pull Request | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: write | |
jobs: | |
unittests: | |
name: Terraform v${{matrix.terraform_version}} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
terraform_version: ['1.6.6', '1.7.5', '1.8.5', '1.9.2'] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v3 | |
with: | |
terraform_version: ${{matrix.terraform_version}} | |
- name: Terraform init (v${{matrix.terraform_version}}) | |
run: | | |
for i in $(find . -name tests -exec dirname {} \;); do | |
echo "Running tests for: \"$i\"" | |
terraform -chdir="$i" init | |
echo; | |
done | |
- name: Run Tests | |
run: | | |
for i in $(find . -name tests -exec dirname {} \;); do | |
echo "Running tests for: \"$i\"" | |
terraform -chdir="$i" test | |
echo; | |
done |