+40
.github/workflows/docs.yml
+40
.github/workflows/docs.yml
···
1
+
name: docs
2
+
3
+
on:
4
+
push:
5
+
branches:
6
+
- main
7
+
- develop
8
+
pull_request:
9
+
10
+
jobs:
11
+
docs:
12
+
name: linters
13
+
runs-on: ubuntu-latest
14
+
steps:
15
+
- uses: actions/checkout@v4
16
+
17
+
- name: Install Task
18
+
uses: arduino/setup-task@v1
19
+
with:
20
+
version: 3.x
21
+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22
+
23
+
- name: Install NeoVim
24
+
uses: rhysd/action-setup-vim@v1
25
+
with:
26
+
neovim: true
27
+
version: ${{ matrix.version }}
28
+
29
+
- name: Cache .tests
30
+
uses: actions/cache@v4
31
+
with:
32
+
path: |
33
+
${{ github.workspace }}/.tests
34
+
key: ${{ runner.os }}-tests-${{ hashFiles('${{ github.workspace }}/.tests') }}
35
+
36
+
- name: Generate docs
37
+
run: task docgen
38
+
39
+
- name: Check docs diff
40
+
run: exit $(git status --porcelain doc | wc -l | tr -d " ")