Skip to content

Commit

Permalink
CI: try to install test dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Jun 23, 2024
1 parent 4860817 commit d34f9f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d34f9f8

Please sign in to comment.