diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-03-29 10:18:41 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-03-29 10:18:41 -0300 |
| commit | 242bee0d8855e90eef90944efdf38538b00e6500 (patch) | |
| tree | 9706c8751f2f1c9f114c7c889ca9c5c797b70e30 /.github | |
| parent | 307507c0cabb11daa38023f75c57fd1f100870eb (diff) | |
| parent | 2a4d0a1febd93c772f40a63ea3cf2256ab67bf94 (diff) | |
| download | mullvadvpn-242bee0d8855e90eef90944efdf38538b00e6500.tar.xz mullvadvpn-242bee0d8855e90eef90944efdf38538b00e6500.zip | |
Merge branch 'add-ci-job-for-translations'
Diffstat (limited to '.github')
| -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 . |
