Skip to content

Commit 238fe97

Browse files
authored
ci(github): streamline Terraform CI steps by consolidating working directory settings (#215)
1 parent 354631f commit 238fe97

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,26 +89,23 @@ jobs:
8989
terraform-validate:
9090
runs-on: ubuntu-latest
9191
timeout-minutes: 10
92+
defaults:
93+
run:
94+
working-directory: terraform
9295
steps:
9396
- uses: actions/checkout@v4
9497
- name: Setup Terraform
9598
uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
96-
with:
97-
terraform_version: "1.13.5"
9899
- name: Install tflint
99100
run: |
100101
curl -s https://raw.githubusercontent.com/terraform-linters/tflint/master/install_linux.sh | bash
101102
- name: Terraform Format Check
102-
working-directory: terraform
103103
run: terraform fmt -check -recursive
104104
- name: Terraform Init
105-
working-directory: terraform
106105
run: terraform init -backend=false
107106
- name: Terraform Validate
108-
working-directory: terraform
109107
run: terraform validate
110108
- name: Run tflint
111-
working-directory: terraform
112109
run: tflint --init && tflint
113110

114111
sops-secrets-check:

0 commit comments

Comments
 (0)