Restructure helper scripts so they're slightly more useful

This commit is contained in:
Jake Howard 2020-02-22 20:41:04 +00:00
parent ac6210d618
commit 34aa3a52f8
Signed by: jake
GPG key ID: 57AFB45680EDD477
9 changed files with 11 additions and 20 deletions

View file

@ -12,6 +12,6 @@ jobs:
with:
python-version: 3.7
- name: Install dependencies
run: ./scripts/setup.sh
run: ./scripts/ansible/setup.sh
- name: Run linters
run: ./scripts/ansible-lint.sh
run: ./scripts/ansible/lint.sh

View file

@ -12,6 +12,6 @@ jobs:
with:
version: "0.12.20"
- name: Initialize Terraform
run: cd terraform/ && terraform init
run: ./scripts/terraform/terraform.sh init
- name: Lint
run: ./scripts/terraform-lint.sh
run: ./scripts/terraform/lint.sh

View file

@ -1,5 +0,0 @@
#!/usr/bin/env bash
set -ex
./scripts/ansible.sh

View file

@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -e
cd terraform/
set -x
terraform validate
terraform fmt -check -recursive

7
scripts/terraform/lint.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -ex
./scripts/terraform/terraform.sh validate
./scripts/terraform/terraform.sh fmt -check -recursive