-
Notifications
You must be signed in to change notification settings - Fork 36
42 lines (37 loc) · 1.06 KB
/
i18n.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
name: i18n
on:
push:
branches: [develop]
paths:
- src/locales/en.json
- src/locales/eula/en.html
- ios/en.lproj/*.strings
- android/app/src/main/res/values/strings.xml
- .github/workflows/*.yml
- src/locales/*.sh
pull_request:
branches: [develop]
paths:
- src/locales/en.json
- src/locales/eula/en.html
- ios/en.lproj/*.strings
- android/app/src/main/res/values/strings.xml
- .github/workflows/*.yml
- src/locales/*.sh
jobs:
# Run on PRs, checks for any added keys that are missing in the app/locales/en.json file
check-i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: cached node_modules/
uses: actions/cache@v1
id: cache
with:
path: node_modules
key: ${{ runner.OS }}-yarn-cache-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-cache-
- run: yarn --frozen-lockfile
if: steps.cache.outputs.cache-hit != 'true'
- run: yarn i18n:check