Right now, for translator-specific PRs, which only change/add TOML documents, none of our workflow jobs catch compilation errors with the TOML files themselves, we only find out they crash when we startup the server.
Add a worfklow job that will, after the build job has finished, run setupTranslations.initTranslations() from inside the dist/ directory. I do believe that is enough to throw a crash if a TOML document has an error, but this should be verified. If jobs can't run specific functions from a specified script, then we may have to pull out that logic into a new script, that runs the logic inside initTranslations(), but in its global scope, not nested in a function. Then the job could just run that script.
Discuss:
- Is it possible to skip this job running if nothing has changed inside the translation/ directory?