diff options
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/daemon.yml | 3 | ||||
| -rw-r--r-- | .github/workflows/translations.yml | 50 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.github/workflows/daemon.yml b/.github/workflows/daemon.yml index e123d6e15a..49c983c259 100644 --- a/.github/workflows/daemon.yml +++ b/.github/workflows/daemon.yml @@ -5,7 +5,10 @@ on: paths-ignore: - '**/*.md' - .github/workflows/android*.yml + - .github/workflows/frontend.yml + - .github/workflows/ios.yml - .github/workflows/rustfmt.yml + - .github/workflows/translations.yml - android/** - audits/** - ci/buildserver-* diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml new file mode 100644 index 0000000000..2b88426b0f --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,50 @@ +name: Translation check CI +on: + # Check whenever a file that affects Rust formatting is changed by a push + push: + paths: + - .github/workflows/translations.yml + - android/translations-converter/** + - android/src/**/plurals.xml + - android/src/**/strings.xml + - gui/** + # Check if requested manually from the Actions tab + workflow_dispatch: +jobs: + check-translations: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Install Node.js + uses: actions/setup-node@v2 + with: + node-version: '12' + + - name: Update NPM + run: npm i -g npm + + - name: Install and cache JS dependencies + uses: bahmutov/npm-install@v1 + with: + working-directory: gui + install-command: npm ci + + - name: Install nightly Rust + uses: ATiltedTree/setup-rust@v1.0.4 + with: + rust-version: stable + + - name: Extract messages from desktop GUI + working-directory: gui/locales + run: npm run update-translations + + - name: Convert translations into Android resources + working-directory: android/translations-converter + run: cargo run + + - name: Check if repository is up to date + run: | + git diff + ! git status -s | grep . |
