File tree Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Expand file tree Collapse file tree 2 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -45,17 +45,14 @@ jobs:
4545 with :
4646 neovim : true
4747 version : ${{ matrix.nvim_version }}
48- - name : Install luajit
49- uses : leafo/gh-actions-lua@v11
48+ - uses : leafo/gh-actions-lua@v11
5049 with :
51- luaVersion : " luajit"
52- - name : Install luarocks
53- uses : leafo/gh-actions-luarocks@v4
54- - name : Setup LuaJIT paths
50+ luaVersion : " luajit-openresty"
51+ - uses : leafo/gh-actions-luarocks@v4
52+ - name : build
5553 run : |
56- eval "$(luarocks path --lua-version=luajit)"
57- echo "LUA_PATH=$LUA_PATH"
58- echo "LUA_CPATH=$LUA_CPATH"
54+ luarocks install busted
55+ luarocks make
5956 - name : Run tests
6057 shell : bash
6158 run : |
Original file line number Diff line number Diff line change 66
77set -euo pipefail
88
9- LUA_VERSION=" luajit"
109PLUGINS_FOLDER=" tests/plugins"
1110PLUGINS=(
1211 " https://github.com/MunifTanjim/nui.nvim"
@@ -29,23 +28,6 @@ if ! command -v nvim >/dev/null 2>&1; then
2928 exit 1
3029fi
3130
32- # Install busted if not already present
33- if ! luarocks --lua-version=" $LUA_VERSION " which busted > /dev/null 2>&1 ; then
34- echo " Installing busted..."
35- luarocks install --lua-version=" $LUA_VERSION " busted
36- fi
37-
38- # Optionally install coverage tools
39- for arg in " $@ " ; do
40- if [[ " $arg " == " --coverage" ]]; then
41- if ! luarocks --lua-version=" $LUA_VERSION " which luacov > /dev/null 2>&1 ; then
42- echo " Installing luacov and reporter..."
43- luarocks install --lua-version=" $LUA_VERSION " luacov
44- luarocks install --lua-version=" $LUA_VERSION " luacov-reporter-lcov
45- fi
46- fi
47- done
48-
4931# Clone test plugin dependencies
5032mkdir -p " $PLUGINS_FOLDER "
5133for plugin in " ${PLUGINS[@]} " ; do
You can’t perform that action at this time.
0 commit comments