Skip to content

Commit

Permalink
github-ci: add a job with luacheck
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ligurio committed Apr 12, 2022
1 parent 31ebde8 commit f67a26e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Run checks

on:
push:
pull_request:

jobs:
luacheck:
runs-on: ubuntu-latest
if: |
github.event_name == 'push' ||
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@master

- name: Setup Tarantool
uses: tarantool/setup-tarantool@v1
with:
tarantool-version: '2.8'

- name: Setup luacheck
run: tarantoolctl rocks install luacheck 0.25.0

- name: Run luacheck
run: ./.rocks/bin/luacheck .

0 comments on commit f67a26e

Please sign in to comment.