Skip to content

Commit a14c335

Browse files
authored
Merge pull request #32 from dundargoc/ci/add-test
ci: add test
2 parents 6a02463 + 7bdace3 commit a14c335

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "Test"
2+
on:
3+
pull_request:
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- run: |
10+
sudo apt-get update
11+
sudo apt-get install -y luarocks
12+
- run: make test

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
LUA_VERSION=5.1
99

1010
LUA_PATH = deps/share/lua/$(LUA_VERSION)/?.lua;deps/share/lua/$(LUA_VERSION)/?/init.lua
11-
LUA_PATH += ;lua/?.lua;lua/?/init.lua
11+
LUA_PATH := $(LUA_PATH);lua/?.lua;lua/?/init.lua
12+
LUA_PATH := $(LUA_PATH);$(shell lua$(LUA_VERSION) -e 'print(package.path)')
1213
export LUA_PATH
1314

14-
export LUA_CPATH = deps/lib/lua/$(LUA_VERSION)/?.so
15+
export LUA_CPATH = deps/lib/lua/$(LUA_VERSION)/?.so;$(shell lua$(LUA_VERSION) -e 'print(package.cpath)')
1516

1617
ifdef PCRE_DIR
1718
LREXLIB_PCRE_FLAGS = PCRE_DIR=$(PCRE_DIR)

0 commit comments

Comments
 (0)