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 name: luacheck
on: [push, pull_request] on: [push, pull_request]
jobs: jobs:
build: luacheck:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - name: Checkout
- name: apt uses: actions/checkout@main
run: sudo apt-get install -y luarocks - name: Luacheck
- name: luacheck install uses: lunarmodules/luacheck@master
run: luarocks install --local luacheck
- name: luacheck run
run: $HOME/.luarocks/bin/luacheck ./

View File

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