TF009
Validating YAMLs¶
Without generating any output, we validate that the YAMLs conform to the expected schema
Is a test for
Initial state¶
The uv tool and curl are required.
The expected state is the final state of
TF004
Add comments
Procedure¶
Step 1¶
Install Yamale
$ uv tool install yamale
[...]
Installed 1 executable: yamale
Step 2¶
Obtain the schema
$ curl --pogress-bar -O https://raw.githubusercontent.com/agagniere/speky/refs/heads/master/schema.yaml
#[...]# 100.0%
Step 3¶
Run Yamale on the YAMLs
$ yamale -s schema.yaml specs.yaml tests.yaml comments.yaml
Validating specs.yaml...
Validating tests.yaml...
Validating comments.yaml...
Validation success! 👍