add half done self managed version #1
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: Terraform CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
jobs: | |
validate: | |
name: Validate | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./example | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v1 | |
- name: Run a Terraform init | |
uses: docker://hashicorp/terraform:light | |
with: | |
entrypoint: terraform | |
args: init | |
- name: Run a Terraform validate | |
uses: docker://hashicorp/terraform:light | |
with: | |
entrypoint: terraform | |
args: validate | |
- name: Run a Terraform fmt | |
uses: docker://hashicorp/terraform:light | |
with: | |
entrypoint: terraform | |
args: fmt --recursive -check=true --diff ../ |