From 2ebf9bbe21138e33a72a440938f8dd76b8f42200 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Tue, 5 Jan 2021 16:16:29 +1100 Subject: [PATCH] update luacheck worlkflow and add badge --- .github/workflows/luacheck.yml | 8 ++------ .luacheckrc | 12 +----------- readme.md | 4 +++- 3 files changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index a03fe92..a13efa9 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -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 diff --git a/.luacheckrc b/.luacheckrc index 5739097..170b26e 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -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", } diff --git a/readme.md b/readme.md index d80de04..5550aa8 100644 --- a/readme.md +++ b/readme.md @@ -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