From 8de103d9805df545175fe45559ed21fa1a361404 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Star=C3=BD=20Novotn=C3=BD?= Date: Mon, 1 Jul 2024 15:49:47 +0200 Subject: [PATCH] Fix the CI pipeline --- .github/workflows/main.yml | 2 +- Makefile | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2346c7fc..cf639ad7 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 testdeps && make test' + docker run --rm -v "$PWD":/mnt -w /mnt --entrypoint /bin/bash jgm/lunamark -c 'set -e; eval "$(luarocks path)"; make testdeps; make test' diff --git a/Makefile b/Makefile index 338f4fe2..10911d8b 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,6 @@ testdeps: 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} LUNAMARK_EXTENSIONS="" bin/shtest ${TESTOPTS} -d tests/lunamark -p ${PROG} ${OPTS}