From cf485309c5b0f2c7a34d656a54a866348b0e675a Mon Sep 17 00:00:00 2001 From: Patrick Lodder Date: Thu, 19 Oct 2023 16:00:37 -0400 Subject: [PATCH] ci: add linter for translations Adds a lint job to the CI where we can do sanity analysis on included files to help spot errors on non-cpp source files that may cause problems during runtime. This first job implements contrib/devtools/check-translations.py that alerts the repository of errors in the translation files in src/qt/locale. Errors in a translation file are otherwise only becoming visible during runtime. --- .github/workflows/linter.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 00000000000..3fec1668ef8 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,17 @@ +name: linter +on: + push: + paths-ignore: + - '**/*.md' + pull_request: + paths-ignore: + - '**/*.md' + +jobs: + translations: + name: Check Translations + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v3 + - name: Lint translation files + run: python3 contrib/devtools/check-translations.py