Skip to content

Commit 77f2d70

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 31ebde8 commit 77f2d70

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/check.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run checks
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
check-format:
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+
15+
steps:
16+
- uses: actions/checkout@master
17+
18+
luacheck:
19+
runs-on: ubuntu-latest
20+
if: |
21+
github.event_name == 'push' ||
22+
github.event_name == 'pull_request' &&
23+
github.event.pull_request.head.repo.full_name != github.repository
24+
steps:
25+
- uses: actions/checkout@master
26+
27+
- name: Setup Tarantool
28+
uses: tarantool/setup-tarantool@v1
29+
with:
30+
tarantool-version: '2.8'
31+
32+
- name: Setup luacheck
33+
run: tarantoolctl rocks install luacheck 0.25.0
34+
35+
- name: Run luacheck
36+
run: ./.rocks/bin/luacheck .

0 commit comments

Comments
 (0)