-
-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (32 loc) · 892 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Check scripts with luacheck
on:
push:
branches: [master]
paths: ["**/*.lua"]
pull_request:
paths: ["**/*.lua"]
jobs:
luacheck:
runs-on: ubuntu-latest
strategy:
matrix:
lua:
- ver: 5.1.5
std: lua51
- ver: 5.2.4
std: lua52c
- ver: luajit-2.0.5
std: luajit
steps:
- uses: actions/checkout@v4
name: Checkout repository
- uses: leafo/gh-actions-lua@ecdb13962d7d7274594480620bb6075504122bfe
name: Install lua [${{matrix.lua.ver}}]
with:
luaVersion: ${{matrix.lua.ver}}
- uses: leafo/gh-actions-luarocks@4dcae7fc5aff45e847b32f62b60a13167e912395
name: Install luarocks
- name: Install luacheck
run: luarocks install luacheck
- name: Lint with luacheck
run: luacheck --std ${{matrix.lua.std}} .