Add linters for metal and infra

This commit is contained in:
Khue Doan 2021-06-10 07:14:10 +07:00
parent b0dfe1995a
commit 03deb76eb9
4 changed files with 12 additions and 0 deletions

View File

@ -24,3 +24,7 @@ docs:
.PHONY: apply
apply: metal infra apps
lint:
make -C metal lint
make -C infra lint

View File

@ -16,3 +16,6 @@ apply: plan
destroy:
terraform destroy
lint:
terraform fmt -recursive -diff -check

View File

@ -11,3 +11,6 @@ shutdown:
ansible-playbook \
--inventory hosts.yml \
shutdown.yml
lint:
ansible-lint --project-dir .

View File

@ -5,6 +5,8 @@ COPY ./mirrorlist /etc/pacman.d/mirrorlist
RUN yes | pacman --sync --refresh \
ansible \
ansible-lint \
diffutils \
docker \
docker-compose \
git \