update luacheck worlkflow and add badge

This commit is contained in:
OgelGames
2021-01-05 16:16:29 +11:00
parent 1bc15b0ecf
commit 2ebf9bbe21
3 changed files with 6 additions and 18 deletions
+2 -6
View File
@@ -1,14 +1,10 @@
name: luacheck
on: [push]
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@master
- name: apt
run: sudo apt-get install -y luarocks
- name: luacheck install
+1 -11
View File
@@ -1,22 +1,12 @@
unused_args = false
allow_defined_top = true
globals = {
"spacesuit",
}
read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
"call",
-- Minetest
"minetest",
"vector", "ItemStack",
"dump", "VoxelArea",
-- Deps
"unified_inventory", "default", "monitoring",
"armor"
"armor",
}
+3 -1
View File
@@ -1,5 +1,7 @@
# Intro
# Spacesuit
[![luacheck](https://github.com/mt-mods/spacesuit/workflows/luacheck/badge.svg)](https://github.com/mt-mods/spacesuit/actions)
Spacesuit mod for minetest