-
-
Notifications
You must be signed in to change notification settings - Fork 376
33 lines (29 loc) · 869 Bytes
/
lint.yml
File metadata and controls
33 lines (29 loc) · 869 Bytes
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
name: Check patch series correctness
on: [push, pull_request]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- run: python3 ./devutils/lint.py
i18n:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Regenerate source strings and check for drift
run: |
python3 ./devutils/i18n.py generate -o /tmp/source.gen.json
diff -u ./i18n/source.gen.json /tmp/source.gen.json || {
echo "::error::i18n/source.gen.json is out of date. Run: python3 devutils/i18n.py generate"
exit 1
}
- name: Validate translation files
run: python3 ./devutils/i18n_lint.py