Skip to content

Commit

Permalink
update luacheck and worlkflow
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Jan 5, 2021
1 parent 894aefc commit cd8f12b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
10 changes: 2 additions & 8 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@

globals = {
"luaentity",
"minetest",
"xp_redo"
}

read_globals = {
-- Stdlib
string = {fields = {"split"}},
table = {fields = {"copy", "getn"}},

-- Minetest
"vector", "ItemStack",
"dump",
"vector",

-- deps
-- Deps
"default", "mesecon", "hb",
"screwdriver", "areas", "protector",
"woodcutting"
Expand Down

0 comments on commit cd8f12b

Please sign in to comment.