Skip to content

Commit

Permalink
ci: add linter for translations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
patricklodder committed Oct 19, 2023
1 parent be2ee04 commit cf48530
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit cf48530

Please sign in to comment.