generated from the-liberated-edge/wikijs
i-11 Added task for formating the yaml code base (#13)
# Context This PR implements the following [issue](#11). # Acceptance criteria - [x] A build automation rule for formatting YAML code via `yamlfix` has been introduced. - [x] `README.md` has been updated with the correct command for formatting code. Co-authored-by: emo <esimeonov@gmail.com> Reviewed-on: #13
This commit is contained in:
parent
28848d4e76
commit
cb0bdd5670
@ -131,6 +131,8 @@ a container hypervisor.
|
|||||||
4. Python 3 has been set up correctly on the machine.
|
4. Python 3 has been set up correctly on the machine.
|
||||||
5. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine.
|
5. [Pipenv](https://github.com/pypa/pipenv) has been installed on the machine.
|
||||||
6. [git](https://git-scm.com/) has been installed on the machine.
|
6. [git](https://git-scm.com/) has been installed on the machine.
|
||||||
|
7. [Task](https://github.com/go-task/task) has been installed and has been
|
||||||
|
available in the `$PATH` environment variable for the current user.
|
||||||
|
|
||||||
### Initialize collection project locally
|
### Initialize collection project locally
|
||||||
|
|
||||||
@ -188,7 +190,7 @@ cd test_linux_containers
|
|||||||
Format all YAML documents.
|
Format all YAML documents.
|
||||||
|
|
||||||
```
|
```
|
||||||
yamlfix .
|
task format-yml
|
||||||
```
|
```
|
||||||
|
|
||||||
## Execute Ansible Molecule scenarios
|
## Execute Ansible Molecule scenarios
|
||||||
|
|||||||
5
Taskfile.yml
Normal file
5
Taskfile.yml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
version: '3'
|
||||||
|
tasks:
|
||||||
|
format-yml:
|
||||||
|
cmds: [yamlfix .]
|
||||||
Loading…
x
Reference in New Issue
Block a user