Skip to content

Add workflow job for making sure ejs documents are rendered into language-specific htmls without crashing #800

@Naviary2

Description

@Naviary2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions