From cb0bdd567097b8a350901437aa5b91d2c52931ff Mon Sep 17 00:00:00 2001 From: emil Date: Sat, 2 Mar 2024 01:05:50 +0000 Subject: [PATCH] i-11 Added task for formating the yaml code base (#13) # Context This PR implements the following [issue](https://git.theliberatededge.org/the-liberated-edge/test_linux_containers/issues/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 Reviewed-on: https://git.theliberatededge.org/the-liberated-edge/test_linux_containers/pulls/13 --- README.md | 4 +++- Taskfile.yml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 Taskfile.yml diff --git a/README.md b/README.md index 9d3339a..013b25b 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,8 @@ a container hypervisor. 4. Python 3 has been set up correctly 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. +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 @@ -188,7 +190,7 @@ cd test_linux_containers Format all YAML documents. ``` -yamlfix . +task format-yml ``` ## Execute Ansible Molecule scenarios diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..a97c0ed --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,5 @@ +--- +version: '3' +tasks: + format-yml: + cmds: [yamlfix .]