Skip to content

Commit d7a8e37

Browse files
trying openresty
1 parent 9670eae commit d7a8e37

File tree

2 files changed

+6
-27
lines changed

2 files changed

+6
-27
lines changed

.github/workflows/lua.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff 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: |

lua-test.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
set -euo pipefail
88

9-
LUA_VERSION="luajit"
109
PLUGINS_FOLDER="tests/plugins"
1110
PLUGINS=(
1211
"https://github.com/MunifTanjim/nui.nvim"
@@ -29,23 +28,6 @@ if ! command -v nvim >/dev/null 2>&1; then
2928
exit 1
3029
fi
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
5032
mkdir -p "$PLUGINS_FOLDER"
5133
for plugin in "${PLUGINS[@]}"; do

0 commit comments

Comments
 (0)