2020-10-20 21:14:56 +03:00
|
|
|
name: Docs CI
|
|
|
|
|
2022-08-26 21:07:29 +03:00
|
|
|
### Run on *EVERY* .v or .md related commit.
|
|
|
|
### The documentation *SHOULD* stay valid, and the developers should receive
|
|
|
|
### early warning, if they break it.
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.yml"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.yml"
|
2020-10-20 21:14:56 +03:00
|
|
|
|
|
|
|
jobs:
|
2020-11-18 20:28:28 +03:00
|
|
|
check-markdown:
|
2021-07-19 13:19:03 +03:00
|
|
|
runs-on: ubuntu-20.04
|
2020-11-19 11:36:30 +03:00
|
|
|
timeout-minutes: 5
|
2020-10-20 21:14:56 +03:00
|
|
|
steps:
|
2021-07-19 13:26:36 +03:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build V
|
|
|
|
run: make
|
|
|
|
- name: Check markdown line length & code examples
|
|
|
|
run: ./v check-md -hide-warnings .
|
2022-02-08 12:28:50 +03:00
|
|
|
## NB: -hide-warnings is used here, so that the output is less noisy,
|
|
|
|
## thus real errors are easier to spot.
|
2022-02-06 20:52:14 +03:00
|
|
|
|
|
|
|
report-missing-fn-doc:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
timeout-minutes: 5
|
2022-02-08 12:28:50 +03:00
|
|
|
env:
|
2022-05-27 18:19:06 +03:00
|
|
|
MOPTIONS: --relative-paths --exclude /vlib/v/ --exclude /builtin/linux_bare/ --exclude /testdata/ --exclude /tests/
|
2022-02-06 20:52:14 +03:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Build V
|
|
|
|
run: make
|
|
|
|
|
|
|
|
- name: Checkout previous v
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: vlang/v
|
2022-08-26 21:07:29 +03:00
|
|
|
ref: master # important
|
2022-02-06 20:52:14 +03:00
|
|
|
path: pv
|
|
|
|
|
|
|
|
- name: Check against parent commit
|
|
|
|
run: |
|
2022-05-27 18:19:06 +03:00
|
|
|
./v missdoc --diff $MOPTIONS pv/vlib vlib
|