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 name: luacheck
on: [push, pull_request]
on: [push]
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@master
- name: apt - name: apt
run: sudo apt-get install -y luarocks run: sudo apt-get install -y luarocks
- name: luacheck install - name: luacheck install
+1 -11
View File
@@ -1,22 +1,12 @@
unused_args = false
allow_defined_top = true
globals = { globals = {
"spacesuit", "spacesuit",
} }
read_globals = { read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},
"call",
-- Minetest -- Minetest
"minetest", "minetest",
"vector", "ItemStack",
"dump", "VoxelArea",
-- Deps -- 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 Spacesuit mod for minetest