build: add Makefile for lint and test targets
Problem: .github/pre-commit calls `make fastlint` and .github/pre-push calls `make lint && make test`, but no Makefile existed, so the git hooks failed. Solution: add Makefile with lint (stylua + selene), fastlint (pre-commit), and test (luarocks test) targets.
This commit is contained in:
parent
7180c71f2f
commit
b9279b581b
1 changed files with 11 additions and 0 deletions
11
Makefile
Normal file
11
Makefile
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
.PHONY: lint fastlint test
|
||||
|
||||
lint:
|
||||
stylua --check lua spec
|
||||
selene --display-style quiet .
|
||||
|
||||
fastlint:
|
||||
pre-commit run --all-files
|
||||
|
||||
test:
|
||||
luarocks test --local
|
||||
Loading…
Add table
Add a link
Reference in a new issue