Skip to content

Commit d47cac9

Browse files
committed
feat: adiciona validação de estrutura e formatação do Terraform na pipeline
1 parent 627bcbf commit d47cac9

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,28 @@ jobs:
3030
run: |
3131
python -m py_compile app/main.py
3232
33-
# 5. Validar Terraform (validação sintaxe)
33+
# 5. Validar Terraform
3434
- name: Setup Terraform
3535
uses: hashicorp/setup-terraform@v3
3636

37+
- name: List Terraform files
38+
run: |
39+
ls -la terraform
40+
3741
- name: Terraform Init
3842
run: |
3943
cd terraform
4044
terraform init -backend=false
4145
46+
- name: Terraform Format Check
47+
run: |
48+
cd terraform
49+
terraform fmt -check
50+
4251
- name: Terraform Validate
4352
run: |
4453
cd terraform
45-
terraform validate
54+
terraform validate -no-color
4655
4756
# 6. Build da imagem Docker
4857
- name: Build Docker image

0 commit comments

Comments
 (0)