Bump actions/checkout from 3 to 4 #97
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: Validate | |
on: pull_request | |
jobs: | |
validate_terraform_versions: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
terraform_version: | |
- "0.15.5" | |
- "1.0.11" | |
- "1.1.9" | |
- "1.2.2" | |
defaults: | |
run: | |
working-directory: _test | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v2 | |
with: | |
terraform_version: ${{ matrix.terraform_version }} | |
- run: terraform init | |
- run: terraform validate | |
validate: # this is a workaround, see https://github.community/t/status-check-for-a-matrix-jobs/127354/6 | |
if: ${{ always() }} | |
needs: [validate_terraform_versions] | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check build status of all needed jobs | |
if: ${{ needs.validate_terraform_versions.result != 'success' }} | |
run: exit 1 |