@@ -30,18 +30,21 @@ jobs:
3030 sudo apt install --no-install-recommends libvips-dev
3131 fi
3232
33- - name : Lua dependencies
33+ - name : Install lua-vips
3434 run : |
35- make dev
36- if [[ ${{ matrix.luaVersion }} == 5.* ]]; then make ffi; fi
35+ if [[ ${{ matrix.luaVersion }} == luajit* ]]; then
36+ luarocks config --scope system rocks_provided.luaffi-tkl 2.1-1
37+ fi
38+ luarocks make
3739
3840 - name : Lint with luacheck
3941 run : |
42+ luarocks install luacheck
4043 luacheck -q .
4144
4245 - name : Busted tests
4346 run : |
44- busted -o gtest -v spec
47+ luarocks test spec/ -- -o gtest -v spec
4548
4649
4750 windows :
@@ -86,17 +89,23 @@ jobs:
8689 luarocks config --scope system lua_interpreter ${{ matrix.lua.exe }}.exe
8790 luarocks config --scope system variables.LUA_DIR /mingw64/bin
8891 luarocks config --scope system variables.LUA_INCDIR ${{ matrix.lua.incdir }}
89- make dev
90- if [[ ${{ matrix.lua.exe }} != luajit ]]; then make ffi; fi
92+ if [[ ${{ matrix.lua.exe }} == luajit ]]; then
93+ luarocks config --scope system rocks_provided.luaffi-tkl 2.1-1
94+ fi
9195
9296 - name : Add to PATH
9397 run : |
9498 echo $RUNNER_TEMP/msys64/mingw64/bin:$HOME/.luarocks/bin >> $GITHUB_PATH
9599
100+ - name : Install lua-vips
101+ run : |
102+ luarocks make
103+
96104 - name : Lint with luacheck
97105 run : |
106+ luarocks install luacheck
98107 luacheck.bat -q .
99108
100109 - name : Busted tests
101110 run : |
102- busted.bat -- lua=${{ matrix.lua.exe }} -o gtest -v spec
111+ luarocks test spec -- -- lua=${{ matrix.lua.exe }} -o gtest -v
0 commit comments