blob: 537ad375bf92f4d00351c1eade73b012e6dc6eca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
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/app/src/**/plurals.xml
- android/app/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: '14'
- 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 .
- name: Check if format specifiers are correct
working-directory: gui/scripts
run: npm exec ts-node verify-format-specifiers.ts
|