CI/CD
How to integrate YAML8n within your CI/CD pipelines.
Categories:
YAML8n works really well in a Continuous Integration/Continuous Delivery (CI/CD) pipeline.
Check Generated Code
It’s recommended to run yaml8n generate follow by a git diff to check if the output code changes. This should fail builds, as they aren’t using the latest translations.
yaml8n generate translations.yaml
git diff --exit-code outputs/yaml8n.tsLint Translations
You can lint the Translations by running yaml8n lint. This command will walk the translations and ensure they have the correct syntax.
Additionally, you can configure linting to fail on warnings by setting Config > failWarn.
yaml8n lint -w translations.yaml
37 Warnings Found:
- PasswordNewUsage is missing a translation: ja
- PasswordNewUsage is missing a translation: pt
- PasswordNewUsage is missing a translation: zh
- PasswordNewUsage is missing a translation: ar
- PasswordNewUsage is missing a translation: de
- PasswordNewUsage is missing a translation: nl
- PasswordNewUsage is missing a translation: pl