ci: add Makefile

This commit is contained in:
Alexander Courtis
2023-12-31 16:40:05 +11:00
parent 5e6511509c
commit 95b91463c0
3 changed files with 37 additions and 9 deletions

29
Makefile Normal file
View File

@@ -0,0 +1,29 @@
all: lint style check
#
# mandatory checks
#
lint:
luacheck -q lua
scripts/doc-comments.sh
style:
stylua lua --check
check:
scripts/luals-check.sh
#
# fixes
#
style-fix:
stylua lua
#
# utility
#
update-help:
scripts/update-help.sh
.PHONY: all style lint check style-fix update-help