-
Notifications
You must be signed in to change notification settings - Fork 29
62 lines (51 loc) · 1.52 KB
/
docs_ci.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
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Docs CI
### Run on *EVERY* commit. The documentation *SHOULD* stay valid, and
### the developers should receive early warning if they break it.
on: [push, pull_request]
jobs:
check-markdown:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
VFLAGS: -cc tcc
steps:
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Build local v
run: make -j4 && sudo ./v symlink
- name: Checkout vab
uses: actions/checkout@v2
with:
path: vab
- name: Symlink as module
run: sudo ln -s $(pwd)/vab ~/.vmodules/vab # Workaround for doing `mv vab ~/.vmodules`
- name: Check markdown line length & code examples
run: v check-md -hide-warnings vab
## NB: -hide-warnings is used here, so that the output is less noisy,
## thus real errors are easier to spot.
report-missing-fn-doc:
runs-on: ubuntu-latest
timeout-minutes: 5
env:
MOPTIONS: --relative-paths --exclude /tests/
steps:
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v
- name: Build local v
run: make -j4 && sudo ./v symlink
- name: Checkout vab
uses: actions/checkout@v2
with:
path: vab
- name: Checkout previous vab
uses: actions/checkout@v2
with:
repository: vlang/vab
ref: master
path: pvab
- name: Check against parent commit
run: v missdoc --diff $MOPTIONS pvab vab