-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1014 Bytes
/
Copy pathdocs-qa.yml
File metadata and controls
41 lines (35 loc) · 1014 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
34
35
36
37
38
39
40
41
name: Docs QA
on:
pull_request:
paths:
- 'docs/**'
- '.github/workflows/docs-qa.yml'
push:
branches: [main]
paths:
- 'docs/**'
jobs:
check-code-examples:
name: Verify Code Examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Zen C Compiler
run: |
git clone --depth 1 https://github.com/zenc-lang/zenc.git /tmp/zenc-build
cd /tmp/zenc-build
sudo apt-get update && sudo apt-get install -y libtcc-dev
make -j$(nproc)
sudo make install
cd -
- name: Run Code Example Checker
run: |
python3 docs/scripts/check_doc_examples.py docs/reference/*.md docs/std/*.md
check-translations:
name: Translation Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Translation Gaps
run: |
python3 docs/scripts/check_translations.py docs/reference docs/std