generated from the-liberated-edge/wikijs
Set up proper task dependency for linters
This commit is contained in:
parent
1c1ca2759d
commit
84200615bf
@ -179,6 +179,10 @@ Use `ansible-lint` to verify good practices relevant to Ansible.
|
|||||||
task lint-ansible
|
task lint-ansible
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that this task depends on `lint-yml`, which means that linting YML will
|
||||||
|
happen before linting the Ansible code base. Linting the Ansible code base will
|
||||||
|
only be triggered when linting all YML documents in the repository has been successful.
|
||||||
|
|
||||||
## YAML code formatting
|
## YAML code formatting
|
||||||
|
|
||||||
Navigate to the root folder of the local copy of this git repository.
|
Navigate to the root folder of the local copy of this git repository.
|
||||||
|
|||||||
@ -6,4 +6,5 @@ tasks:
|
|||||||
lint-yml:
|
lint-yml:
|
||||||
cmds: [yamllint .]
|
cmds: [yamllint .]
|
||||||
lint-ansible:
|
lint-ansible:
|
||||||
|
deps: [lint-yml]
|
||||||
cmds: [LC_ALL=C.UTF-8 ansible-lint .]
|
cmds: [LC_ALL=C.UTF-8 ansible-lint .]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user