-
-
Notifications
You must be signed in to change notification settings - Fork 955
35 lines (30 loc) · 1000 Bytes
/
docgen.yml
File metadata and controls
35 lines (30 loc) · 1000 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
name: Check docs
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-sources:
name: Check docs
runs-on: ubuntu-latest
env:
NVIM_URL: https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.tar.gz
steps:
- uses: actions/checkout@v6
- name: Prepare
run: |
test -d _neovim || {
mkdir -p _neovim
curl -sL ${{ env.NVIM_URL }} | tar xzf - --strip-components=1 -C "${PWD}/_neovim"
}
mkdir -p ~/.local/share/nvim/site/pack/vendor/start
git clone --depth 1 https://github.com/nvim-lua/plenary.nvim ~/.local/share/nvim/site/pack/vendor/start/plenary.nvim
ln -s $(pwd) ~/.local/share/nvim/site/pack/vendor/start
- name: Check docs
run: |
export PATH="${PWD}/_neovim/bin:${PATH}"
export VIM="${PWD}/_neovim/share/nvim/runtime"
nvim --version
make docgen
git diff --exit-code