diff options
author | Rémy Raes <raes.remy@gmail.com> | 2023-04-06 00:28:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 00:28:09 +0200 |
commit | 7ec5413c0e71300814350164c69e6452136bd4cd (patch) | |
tree | 0b01bde876db7be51ab2d5a645bb3d13c745bfec /.github/workflows/encoding.yml | |
parent | 80ceb2b317336c454d83392028501a31da89e77e (diff) | |
download | NorthstarMods-7ec5413c0e71300814350164c69e6452136bd4cd.tar.gz NorthstarMods-7ec5413c0e71300814350164c69e6452136bd4cd.zip |
Add CI logic for finding missing translations (#608)
* build: add script to get missing keys per language
* fix: typo
* fix: check arguments before launching script
* feat: script can be run with language argument
* docs: add readme
* fix: remove multiple spaces while searching for translations
* build: add translations check CI
* refactor: put translation job alongside encoding job
* feat: add unicode characters because why not
* build: exit with an error code if some translations are missing
* build: exit using process.exit
* feat: CI should continue running with missing translations
* build: use actions/checkout v3
* refactor: put build directory into .github directory
Diffstat (limited to '.github/workflows/encoding.yml')
-rw-r--r-- | .github/workflows/encoding.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/encoding.yml b/.github/workflows/encoding.yml index ac63e784..bafdb15b 100644 --- a/.github/workflows/encoding.yml +++ b/.github/workflows/encoding.yml @@ -11,3 +11,11 @@ jobs: run: | files=$(ls Northstar.Client/mod/resource/northstar_client_localisation_*.txt) IFS=$'\n'; files=($files); unset IFS; ! file --mime "${files[@]}" | grep -v "charset=utf-16le" + check-missing-translations: + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Look out for missing translations + run: node .github/build/find-missing-translations.js + continue-on-error: true |