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.
11 lines
160 B
Makefile
11 lines
160 B
Makefile
.PHONY: lint fastlint test
|
|
|
|
lint:
|
|
stylua --check lua spec
|
|
selene --display-style quiet .
|
|
|
|
fastlint:
|
|
pre-commit run --all-files
|
|
|
|
test:
|
|
luarocks test --local
|