Skip to content

Commit e1fae69

Browse files
committed
ci: add help check
1 parent eb9f7cd commit e1fae69

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
mkdir -p luals
6363
curl -L "https://github.com/LuaLS/lua-language-server/releases/download/${LUALS_VERSION}/lua-language-server-${LUALS_VERSION}-linux-x64.tar.gz" | tar zx --directory luals
6464
65-
- name: check
65+
- name: language server
6666
run: |
6767
VIMRUNTIME=/home/runner/nvim-${NVIM_VERSION}/share/nvim/runtime PATH="luals/bin:${PATH}" make check
68+
69+
- name: help
70+
run: |
71+
make check-help

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ VIMRUNTIME="/my/path/to/runtime" make check
6565

6666
To add a new action, add a file in `actions/name-of-the-action.lua`. You should export a `setup` function if some configuration is needed.
6767

68-
Once you did, you should run `make update-help`
68+
Once you did, you should run `make help-update`
6969

7070
# Documentation
7171

Makefile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,15 @@ style-fix:
2222
#
2323
# utility
2424
#
25-
update-help:
26-
scripts/update-help.sh
25+
help-update:
26+
scripts/help-update.sh
2727

28-
.PHONY: all style lint check style-fix update-help
28+
#
29+
# CI
30+
#
31+
help-check:
32+
scripts/help-update.sh
33+
git diff --exit-code doc/nvim-tree-lua.txt
34+
35+
.PHONY: all style lint check style-fix help-check help-update
2936

scripts/update-help.sh renamed to scripts/help-update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# run after changing nvim-tree.lua DEFAULT_OPTS or keymap.lua M.default_on_attach
44
# scrapes and updates nvim-tree-lua.txt
5-
# run from repository root: scripts/update-help.sh
5+
# run from repository root: scripts/help-update.sh OR make help-update
66

77

88
#

0 commit comments

Comments
 (0)