mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-24 11:38:21 +01:00
ci: Add workflow to run luacheck linter
This commit is contained in:
parent
f6509d4fd5
commit
480c052572
26
.github/workflows/luacheck.yml
vendored
Normal file
26
.github/workflows/luacheck.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
name: Luacheck
|
||||
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
luacheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Lua
|
||||
uses: leafo/gh-actions-lua@v8
|
||||
with:
|
||||
luaVersion: 5.4
|
||||
|
||||
- name: Setup Lua Rocks
|
||||
uses: leafo/gh-actions-luarocks@v4
|
||||
|
||||
- name: Setup dependencies
|
||||
run: luarocks install luacheck
|
||||
|
||||
- name: Run Code Linter
|
||||
run: |
|
||||
luacheck .
|
Loading…
Reference in New Issue
Block a user