File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change 35
35
- uses : actions/checkout@v4
36
36
- name : Install deps
37
37
run : |
38
- apk add --no-cache curl perl bash wget git perl-dev libarchive-tools nodejs
38
+ apk add --no-cache curl perl bash wget git perl-dev libarchive-tools nodejs build-base
39
39
ln -s /usr/bin/bsdtar /usr/bin/tar
40
40
41
41
- name : Install CPAN
@@ -52,17 +52,28 @@ jobs:
52
52
- name : Install Test::Nginx
53
53
run : cpanm -q -n Test::Nginx
54
54
55
- - uses : leafo/gh-actions-luarocks@v5
56
- with :
57
- luarocksVersion : " 3.12.2"
55
+ - name : Install latest LuaRocks
56
+ run : |
57
+ # Remove old luarocks if exists
58
+ rm -rf /usr/local/openresty/luajit/bin/luarocks* || true
59
+ # Download and install latest LuaRocks
60
+ cd /tmp
61
+ wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
62
+ tar zxpf luarocks-3.11.1.tar.gz
63
+ cd luarocks-3.11.1
64
+ ./configure --prefix=/usr/local/openresty/luajit \
65
+ --with-lua=/usr/local/openresty/luajit \
66
+ --lua-suffix=jit \
67
+ --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1
68
+ make build && make install
58
69
59
70
- name : Install Luacov
60
- run :
71
+ run : |
72
+ # Clear any existing cache
73
+ rm -rf ~/.cache/luarocks || true
61
74
/usr/local/openresty/luajit/bin/luarocks install luacov
62
75
/usr/local/openresty/luajit/bin/luarocks install lua-resty-openssl
63
76
64
- - uses : actions/checkout@v4
65
-
66
77
- name : Run tests
67
78
run : make coverage
68
79
You can’t perform that action at this time.
0 commit comments