Skip to content

Merge pull request #11 from philips-labs/dependabot/github_actions/ac… #69

Merge pull request #11 from philips-labs/dependabot/github_actions/ac…

Merge pull request #11 from philips-labs/dependabot/github_actions/ac… #69

Workflow file for this run

name: Verify
on:
push:
branches:
- main
pull_request:
jobs:
## Verify module, terraform validate runs only on examples
verify_module:
name: Verify module
strategy:
matrix:
terraform: [1.3.2]
runs-on: ubuntu-latest
container:
image: hashicorp/terraform:${{ matrix.terraform }}
steps:
- uses: actions/checkout@v4
- name: init terraform
run: terraform init -get -backend=false -input=false
- name: check formatting
run: terraform fmt -recursive -check=true -write=false
verify_examples:
## Verify examples, terraform fmt runs only on module version.
name: Verify examples
strategy:
matrix:
terraform: [1.3.2, latest]
example: ["default"]
defaults:
run:
working-directory: examples/${{ matrix.example }}
runs-on: ubuntu-latest
container:
image: hashicorp/terraform:${{ matrix.terraform }}
steps:
- uses: actions/checkout@v4
- name: init terraform example
run: terraform init -get -backend=false -input=false
- name: check formatting
if: ${{ matrix.terraform == '0.14.5' }}
run: terraform fmt -recursive -check=true -write=false
- name: validate terraform
run: terraform validate