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:
Barrett Ruth 2026-02-22 16:00:51 -05:00
parent 7180c71f2f
commit b9279b581b
Signed by: barrett
GPG key ID: A6C96C9349D2FC81

11
Makefile Normal file
View 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