Use nix for testing environment
All checks were successful
NeoVim tests / code-quality (push) Successful in 1m28s

This commit is contained in:
2025-05-19 16:33:40 -06:00
parent 35b6e123ac
commit 9d525c6786
4 changed files with 58 additions and 15 deletions

View File

@@ -1,16 +1,14 @@
PLENARY_DIR=~/.local/share/nvim/site/pack/test/opt/plenary.nvim
all: lint test
all: lint fmt-check test
lint:
lua-language-server --check=lua/u/ --checklevel=Error
lx check
@# lx check
fmt-check:
stylua --check .
fmt:
stylua .
test: $(PLENARY_DIR)
NVIM_APPNAME=noplugstest nvim -u NORC --headless -c 'set packpath+=~/.local/share/nvim/site' -c 'packadd plenary.nvim' -c "PlenaryBustedDirectory spec/"
$(PLENARY_DIR):
git clone https://github.com/nvim-lua/plenary.nvim/ $(PLENARY_DIR)
test:
busted