Skip to content

Add actions workflows and unit tests (#1) #2

Add actions workflows and unit tests (#1)

Add actions workflows and unit tests (#1) #2

Workflow file for this run

name: Validate, Lint and Test
on:
push:
branches:
- main
pull_request:
jobs:
lint-and-validate:
name: "Terraform fmt and validate"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: hashicorp/setup-terraform@a1502cd9e758c50496cc9ac5308c4843bcd56d36 # v3.0.0
- run: terraform fmt -check
- run: |
terraform init
terraform validate