Skip to content

Commit d4e44fc

Browse files
committed
github-ci: add workflow with luacheck
luacheck config has been already added in commit 'lua: fix code style in test scripts' (17b725f). As well as fixes for warnings found by luacheck.
1 parent 8125225 commit d4e44fc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/check.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,23 @@ jobs:
1919
run: |
2020
gofmt -d -e -s .
2121
if [ "$(gofmt -l -s . | wc -l)" -gt 0 ]; then exit 1; fi
22+
23+
luacheck:
24+
runs-on: ubuntu-latest
25+
if: |
26+
github.event_name == 'push' ||
27+
github.event_name == 'pull_request' &&
28+
github.event.pull_request.head.repo.full_name != github.repository
29+
steps:
30+
- uses: actions/checkout@master
31+
32+
- name: Setup Tarantool
33+
uses: tarantool/setup-tarantool@v1
34+
with:
35+
tarantool-version: '2.8'
36+
37+
- name: Setup luacheck
38+
run: tarantoolctl rocks install luacheck 0.25.0
39+
40+
- name: Run luacheck
41+
run: ./.rocks/bin/luacheck .

0 commit comments

Comments
 (0)