Skip to content

Commit e2ed940

Browse files
committed
build(ci): setup ci pipeline
1 parent dd559f4 commit e2ed940

3 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/main.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,27 @@ jobs:
3838
uses: rhysd/action-setup-vim@v1
3939
with:
4040
neovim: true
41-
version: v0.11.0
41+
version: stable
4242

4343
- name: generate documentation
44-
run: make documentation-ci
44+
uses: kdheepak/panvimdoc@main
45+
with:
46+
vimdoc: copy-python-path
47+
pandoc: README.md
48+
version: Neovim >= 0.7.0
49+
demojify: true
50+
51+
- name: generate tags
52+
run: |
53+
nvim --headless -c 'helptags doc' -c 'quit'
4554
46-
- name: check docs diff
47-
run: exit $(git status --porcelain doc | wc -l | tr -d " ")
55+
- name: push changes
56+
uses: stefanzweifel/git-auto-commit-action@v6
57+
with:
58+
commit_message: "docs(vimdoc): auto-generate vimdocs"
59+
commit_user_name: "github-actions[bot]"
60+
commit_user_email: "github-actions[bot]@users.noreply.github.com"
61+
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
4862

4963
tests:
5064
needs:
@@ -54,7 +68,7 @@ jobs:
5468
timeout-minutes: 1
5569
strategy:
5670
matrix:
57-
neovim_version: ['v0.9.5', 'v0.10.1', 'v0.11.0']
71+
neovim_version: ["v0.7.2", "v0.9.5", "v0.10.4", "v0.11.0"]
5872

5973
steps:
6074
- uses: actions/checkout@v4

.luarc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
{
2-
"diagnostics.globals": [
3-
"MiniTest"
4-
]
5-
}
2+
"diagnostics.globals": ["MiniTest", "vim"]
3+
}

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ test:
1414
deps:
1515
@mkdir -p deps
1616
git clone --depth 1 https://github.com/echasnovski/mini.nvim deps/mini.nvim
17+
git clone --depth 1 https://github.com/kdheepak/panvimdoc.git deps/panvimdoc
1718

1819
# installs deps before running tests, useful for the CI.
1920
test-ci: deps test
@@ -30,6 +31,7 @@ lint:
3031
stylua . -g '*.lua' -g '!deps/' -g '!nightly/'
3132
luacheck plugin/ lua/
3233

34+
# LuaLS is more capable than luacheck (e.g. catch type errors)
3335
luals-ci:
3436
rm -rf .ci/lua-ls/log
3537
lua-language-server --configpath .luarc.json --logpath .ci/lua-ls/log --check .

0 commit comments

Comments
 (0)