File tree Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Expand file tree Collapse file tree 3 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ jobs:
31
31
mv nvim-treesitter $HOME/.local/share/nvim/lazy/
32
32
nvim --headless --noplugin -u tests/minimal_init.lua -c "TSInstall! python rust haskell" -c "quit"
33
33
34
- - name : Run luacheck type check
34
+ - name : Run luacheck type check / linter
35
35
run : |
36
36
sudo apt-get install lua-check -y --no-install-recommends
37
- make typecheck
37
+ make check
38
38
39
39
- name : Check for errant util calls
40
40
run : make no-utils
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Thank you for contributing to Treewalker!
10
10
## Things to know
11
11
12
12
* See the Makefile for tasks
13
- * ` make check ` will run everything you need to be sure things are healthy
13
+ * ` make pass ` will run everything you need to be sure things are healthy
14
14
* in your lazy config, set dir = "<the plugin's dir>"
15
15
* use util.R in init.lua for the plugin to hot reload in your current dev environment
16
16
* use ` util.log ` to print to the fs, and ` tail -f ~/.local/share/nvim/treewalker/debug.log ` to read from it
Original file line number Diff line number Diff line change @@ -2,25 +2,32 @@ MINIMAL_INIT=tests/minimal_init.lua
2
2
TESTS_DIR =tests
3
3
NO_UTIL_SPEC =checks
4
4
5
- test :
5
+ .PHONY : test
6
+
7
+ test : # # Run the whole test suite
6
8
@nvim \
7
9
--headless \
8
10
--noplugin \
9
11
-u ${MINIMAL_INIT} \
10
12
-c " PlenaryBustedDirectory ${TESTS_DIR} { minimal_init = '${MINIMAL_INIT} ' }"
11
13
12
- test-watch :
14
+ test-watch : # # Watching for changes to lua files
13
15
nodemon -e lua -x " $( MAKE) test || exit 1"
14
16
15
- typecheck :
16
- luacheck . --globals vim it describe before_each --exclude-files tests/fixtures --max-comment-line-length 140
17
+ check : # # Run luacheck on the project
18
+ luacheck . --globals vim it describe before_each after_each --exclude-files tests/fixtures --max-comment-line-length 140
17
19
18
- no-utils :
20
+ no-utils : # # Make sure there are no errant utils hanging around
19
21
@nvim \
20
22
--headless \
21
23
--noplugin \
22
24
-u ${MINIMAL_INIT} \
23
25
-c " PlenaryBustedDirectory ${NO_UTIL_SPEC} { minimal_init = '${MINIMAL_INIT} ' }"
24
26
25
- # Run this to be sure all's well
26
- check : test typecheck no-utils
27
+ pass : test no-utils check # # Run everything, if it's a 0 code, everything's good
28
+
29
+ help : # # Displays this information.
30
+ @printf ' %s\n' " Usage: make <command>"
31
+ @grep -E ' ^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST ) | awk ' BEGIN {FS = ":.*?## "}; {printf " \033[36m%-30s\033[0m %s\n", $$1, $$2}'
32
+ @printf ' \n'
33
+
You can’t perform that action at this time.
0 commit comments