ci: add lint task back

This commit is contained in:
Khue Doan 2022-05-14 21:08:18 +07:00
parent d16f56981b
commit 9ae548d7dd

View File

@ -39,13 +39,45 @@ spec:
value:
- --cache=true
# TODO lint
- name: metal
- name: lint
runAfter:
- tools
workspaces:
- name: source
workspace: shared-data
taskSpec:
workspaces:
- name: source
stepTemplate:
image: registry.khuedoan.com/tools:latest
steps:
- name: ansible
workingDir: /workspace/source/metal
command:
- ansible-lint
args:
- -v
- name: yaml
command:
- yamllint
args:
- .
- name: terraform
workingDir: /workspace/source/external
command:
- terraform
args:
- fmt
- -recursive
- -check
- -diff
- name: metal
runAfter:
- lint
workspaces:
- name: source
workspace: shared-data
taskSpec:
workspaces:
- name: source
@ -70,7 +102,7 @@ spec:
- name: bootstrap
runAfter:
- tools
- lint
workspaces:
- name: source
workspace: shared-data
@ -92,7 +124,7 @@ spec:
- name: external
runAfter:
- tools
- lint
workspaces:
- name: source
workspace: shared-data