diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b2a28f68..2346c7fc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,4 +34,4 @@ jobs: docker build -t jgm/lunamark . - name: Run unit tests run: | - docker run --rm -v "$PWD":/mnt -w /mnt --entrypoint /bin/sh jgm/lunamark -c 'make test' + docker run --rm -v "$PWD":/mnt -w /mnt --entrypoint /bin/sh jgm/lunamark -c 'make testdeps && make test' diff --git a/Makefile b/Makefile index e39333cfe..9ab864bb0 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,11 @@ rock: $(ROCKSPEC) check: luacheck bin/lunamark lunamark/*.lua lunamark/*/*.lua +testdeps: + luarocks --local install lfs + luarocks --local install diff + luarocks --local install alt_getopt + test: LUAPATH="?.lua;lunamark/?.lua;lunamark/?/?.lua;$$LUAPATH" LUNAMARK_EXTENSIONS="" bin/shtest ${TESTOPTS} -d tests/Markdown_1.0.3 -p ${PROG} ${OPTS} @@ -76,7 +81,7 @@ run-code-examples: lunamark.lua grep -e '^-- ' $< | sed -e 's/^-- //' | lua install: ${luas} - luarocks make + luarocks --local make website: docs ${web}/index.html rm -r ${web}/doc ${web}/*.1.html