Initial commit
This commit is contained in:
39
.gitea/workflows/validate.yml
Normal file
39
.gitea/workflows/validate.yml
Normal file
@ -0,0 +1,39 @@
|
||||
name: terraform validation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
types: [opened, reopened, edited, synchronize]
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: 'Terraform'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- uses: hashicorp/setup-terraform@v3
|
||||
with:
|
||||
terraform_version: 1.7.5
|
||||
|
||||
- name: Terraform fmt
|
||||
id: fmt
|
||||
run: terraform fmt -check -diff -recursive
|
||||
continue-on-error: true
|
||||
|
||||
- name: Terraform Init
|
||||
id: init
|
||||
run: terraform init
|
||||
# working-directory: examples
|
||||
|
||||
- name: Terraform Validate
|
||||
id: validate
|
||||
run: terraform validate
|
||||
# working-directory: examples
|
||||
|
||||
- name: Terraform Plan
|
||||
id: plan
|
||||
run: terraform plan
|
Reference in New Issue
Block a user