Add yamlint to CI
yamllint
is a good utility to validate YAML files – we can benefit from running it in CI to ensure that our sample config files are OK.
There are two issues right now:
- several lines are too long. Can be ignored using overloaded rule:
yamllint -d "{extends: relaxed, rules: {line-length: {max: 160}}}" ~/.dblab/server.yml
- there is a trailing line that looks like a problem for YAML:
109:2 error trailing spaces (trailing-spaces)
Docs: https://yamllint.readthedocs.io/en/stable/configuration.html
Installation: sudo apt install -y yamllint
works on Ubuntu.