-
Notifications
You must be signed in to change notification settings - Fork 17
49 lines (38 loc) · 1.17 KB
/
validate-translations.yml
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
name: Test Makefile
on:
workflow_dispatch:
push:
branches: [ develop ]
pull_request:
jobs:
translations:
name: "${{ matrix.case.name }}"
runs-on: macos-14
strategy:
matrix:
case:
- name: clean_translations
command: |
make clean_translations;
- name: extract_translations
command: |
make extract_translations;
echo "Ensure combined localization file exists";
test -f I18N/I18N/en.lproj/Localizable.strings;
- name: pull_translations
command:
make pull_translations;
echo "Files are split properly";
test -f Authorization/Authorization/uk.lproj/Localizable.strings;
steps:
- uses: nschloe/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Use Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install translations requirements
run: make translation_requirements
- name: "${{ matrix.case.name }}"
run: "${{ matrix.case.command }}"