eversport / intl-codegen

generate code and type definitions from translations
MIT License
15 stars 1 forks source link

Get tests running on Windows #46

Open Swatinem opened 4 years ago

Swatinem commented 4 years ago

With github actions we have the possibility now to run on windows, however that fails for two reasons:

On unix, we can easily enforce these via env, like so:

https://github.com/eversport/intl-codegen/blob/867a4006f197ddfe2009fb9a32bf6a0b81ddf704/package.json#L21

However a quick search didn’t yield any useful results of how to make this work on windows. There are ways to set the system language/timezone, which may make this work on CI, but are not a good idea for local development, because you know you want to have isolation…

Also just setting the timezone to UTC would at least solve the problem on CI, but not the locale issue on local. Also, we explicitly want to test for this behavior!