Skip to content

Commit

Permalink
add in terraform actions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachrundle committed Aug 11, 2024
1 parent c6e4cab commit 7cb3978
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/tfactions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: tfactions
on:
push:
branches:
- main
pull_request:
jobs:
tfactions:
name: tfactions
runs-on: ubuntu-latest

steps:
- uses: hashicorp/setup-terraform@v3
with:
cli_config_credentials_token: ${{ secrets.TF_API_TOKEN }}

- name: Terraform fmt execute
id: fmt
run: terraform fmt -recursive
continue-on-error: true

- name: Terraform fmt check
id: fmt
run: terraform fmt -check
continue-on-error: true

- name: Terraform init
id: init
run: terraform init

- name: Terraform validate
id: validate
run: terraform validate -no-color

- name: Terraform plan
id: plan
run: terraform plan -no-color

- run: echo ${{ steps.plan.outputs.stdout }}
- run: echo ${{ steps.plan.outputs.stderr }}
- run: echo ${{ steps.plan.outputs.exitcode }}

0 comments on commit 7cb3978

Please sign in to comment.