u.nvim/Makefile
Jonathan Apodaca 315ffc9d67
Some checks failed
NeoVim tests / code-quality (push) Failing after 1m25s
Use nix to create environment for testing
2025-05-19 19:01:06 -06:00

22 lines
415 B
Makefile

all: lint fmt-check test
lint:
@echo "## Typechecking"
@lua-language-server --check=lua/u/ --checklevel=Error
fmt-check:
@echo "## Checking code format"
@stylua --check .
fmt:
@echo "## Formatting code"
@stylua .
test:
@rm luacov.*.out
@echo "## Running tests"
@busted --coverage --verbose
@echo "## Generating coverage report"
@luacov
@awk '/^Summary$$/{flag=1;next} flag{print}' luacov.report.out