Skip to content

Commit f37ec79

Browse files
committed
github-ci: add a job 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. Part of #142
1 parent 2c3af56 commit f37ec79

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/check.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Run checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
luacheck:
9+
runs-on: ubuntu-latest
10+
if: |
11+
github.event_name == 'push' ||
12+
github.event_name == 'pull_request' &&
13+
github.event.pull_request.head.repo.full_name != github.repository
14+
steps:
15+
- uses: actions/checkout@master
16+
17+
- name: Setup Tarantool
18+
uses: tarantool/setup-tarantool@v1
19+
with:
20+
tarantool-version: '2.8'
21+
22+
- name: Setup luacheck
23+
run: tarantoolctl rocks install luacheck 0.25.0
24+
25+
- name: Run luacheck
26+
run: ./.rocks/bin/luacheck .

0 commit comments

Comments
 (0)