-
-
Notifications
You must be signed in to change notification settings - Fork 46
39 lines (30 loc) · 974 Bytes
/
checks.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
name: checks
on:
pull_request:
push:
branches: [main]
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Install system dependencies
env:
DEBIAN_FRONTEND: noninteractive
run: |
sudo apt-get update
sudo apt-get install -y gettext
# https://github.com/actions/checkout
- name: Checkout cc-legal-tools-app
uses: actions/checkout@v4
- name: Check published files for invalid template
run: |
! grep -Iir 'legal tool does not have a valid template' docs/
- name: Check published files for INVALID_VARIABLE
run: |
! grep -Iir 'INVALID_VARIABLE' docs/
- name: Check portable object Gettext Files for errors
run: |
find legalcode locale -type f -name '*.po' -exec msgfmt -c -o/dev/null {} \;
- name: Check machine object Gettext Files for errors
run: |
find legalcode locale -type f -name '*.mo' -exec msgunfmt -o/dev/null {} \;