From cb8a87700128294ff28ed9e2de37d641a0541244 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:31:55 +0100 Subject: [PATCH 1/2] Add basic translation verification check --- .github/workflows/translation-check.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/translation-check.yml diff --git a/.github/workflows/translation-check.yml b/.github/workflows/translation-check.yml new file mode 100644 index 0000000000..9a7656acea --- /dev/null +++ b/.github/workflows/translation-check.yml @@ -0,0 +1,21 @@ +name: Verify translations + +on: + workflow_dispatch: + push: + paths: + - 'src/res/translation/' + +jobs: + translation-check: + name: Verify translation + permissions: + contents: read + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: "Check Windows installer translations" + run: ./tools/check-wininstaller-translations.sh + - name: "Check for duplicate hotkeys (will not fail)" + run: perl ./tools/checkkeys.pl From c6adf347776bdc727baa4fab0704b7403dbc2f99 Mon Sep 17 00:00:00 2001 From: ann0see <20726856+ann0see@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:44:58 +0100 Subject: [PATCH 2/2] Install libxml-simple-perl --- .github/workflows/translation-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/translation-check.yml b/.github/workflows/translation-check.yml index 9a7656acea..90e26f1f1e 100644 --- a/.github/workflows/translation-check.yml +++ b/.github/workflows/translation-check.yml @@ -18,4 +18,4 @@ jobs: - name: "Check Windows installer translations" run: ./tools/check-wininstaller-translations.sh - name: "Check for duplicate hotkeys (will not fail)" - run: perl ./tools/checkkeys.pl + run: sudo apt install libxml-simple-perl && perl ./tools/checkkeys.pl