Skip to content

Commit ad3ab60

Browse files
committed
fix luarocks error
1 parent 15cd1c3 commit ad3ab60

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,17 @@ jobs:
5252
- name: Install Test::Nginx
5353
run: cpanm -q -n Test::Nginx
5454

55+
- uses: leafo/gh-actions-luarocks@v5
56+
with:
57+
luarocksVersion: "3.12.2"
58+
5559
- name: Install Luacov
56-
run: |
57-
# Clear luarocks cache to avoid manifest corruption
58-
rm -rf ~/.cache/luarocks || true
60+
run:
5961
/usr/local/openresty/luajit/bin/luarocks install luacov
6062
/usr/local/openresty/luajit/bin/luarocks install lua-resty-openssl
6163

64+
- uses: actions/checkout@v4
65+
6266
- name: Run tests
6367
run: make coverage
6468

0 commit comments

Comments
 (0)