Skip to content

Commit

Permalink
feat: add terraform validation
Browse files Browse the repository at this point in the history
  • Loading branch information
nielm committed Sep 13, 2024
1 parent 0a6ad18 commit 4eb7647
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/codehealth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,11 @@ jobs:

- name: terraform validate infra
working-directory: terraform/infra/
run: terraform validate -no-color
terraform init -no-color
terraform validate -no-color

- name: terraform validate service
working-directory: terraform/service/
run: terraform validate -no-color
run: |
terraform init -no-color
terraform validate -no-color
1 change: 1 addition & 0 deletions cloudrun-malware-scanner/.husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ cd cloudrun-malware-scanner
npm run eslint
npm run check-format
npm run typecheck
npm run terraform-validate
npm audit
1 change: 1 addition & 0 deletions cloudrun-malware-scanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "node server.js",
"terraform-fmt": "terraform fmt ../terraform/*/*.tf ../terraform/*/*/*.tf",
"terraform-fmt-check": "terraform fmt -check ../terraform/*/*.tf ../terraform/*/*/*.tf",
"terraform-validate": "echo 'validating terraform/infra' && cd ../terraform/infra && terraform init && terraform validate && echo 'validating terraform/service' && cd ../service && terraform init && terraform validate",
"prettier": "prettier --config .prettierrc.js --write ..",
"prettier-check": "prettier --config .prettierrc.js --check --log-level=warn ..",
"start-proxy": "node gcs-proxy-server.js",
Expand Down

0 comments on commit 4eb7647

Please sign in to comment.