Skip to content

Commit 5ef5058

Browse files
author
Irving Popovetsky
committed
make the action more efficient
1 parent 09924b6 commit 5ef5058

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/terraform.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
pull_request:
88

99
jobs:
10-
terraform-fmt:
11-
name: Terraform Format
10+
terraform:
11+
name: Terraform format and validate
1212
runs-on: ubuntu-latest
1313
defaults:
1414
run:
@@ -23,20 +23,6 @@ jobs:
2323
- name: Terraform Format
2424
run: terraform fmt -check -recursive
2525

26-
terraform-validate:
27-
name: Terraform Validate
28-
runs-on: ubuntu-latest
29-
needs: terraform-fmt
30-
defaults:
31-
run:
32-
working-directory: terraform
33-
steps:
34-
- name: Checkout
35-
uses: actions/checkout@v4
36-
37-
- name: Setup Terraform
38-
uses: hashicorp/setup-terraform@v3
39-
4026
- name: Terraform Init
4127
run: terraform init -backend=false
4228

0 commit comments

Comments
 (0)