1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 08:00:18 +01:00

upgrade luacheck workflow and define std

This commit is contained in:
BuckarooBanzay 2024-09-15 19:44:17 +02:00
parent e519d3c6e0
commit 1159a02f76
2 changed files with 7 additions and 20 deletions

View File

@ -1,17 +1,10 @@
name: luacheck
on: [push, pull_request]
jobs:
build:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./
- name: Checkout
uses: actions/checkout@main
- name: Luacheck
uses: lunarmodules/luacheck@master

View File

@ -1,3 +1,5 @@
std = "min+minetest"
unused_args = false
max_line_length = 180
@ -6,14 +8,6 @@ globals = {
}
read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
-- Minetest
"vector", "ItemStack",
"dump",
-- optional deps
"advtrains",
"default",