add github files

This commit is contained in:
theFox6 2020-02-26 16:42:37 +01:00
parent 96980b7832
commit 48874e4598
No known key found for this signature in database
GPG Key ID: C884FE8D3BCE128A
8 changed files with 103 additions and 36 deletions

33
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file

@ -0,0 +1,33 @@
---
name: Bug report
about: Report a bug to help fixing it
labels: unconfirmed bug
---
**Describe the bug**
Insert a description of what the bug is.
**To Reproduce**
If known, steps to reproduce the behavior:
1. Use '...'
2. Click on '....'
3. Input '....'
4. See error
**Expected behavior**
Insert a description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Log**
Add the contents of debug.txt if possible under the last separator before the bug appeared.
**Desktop (please complete the following information):**
- Minetest version: [If you are on a devel version, please add git commit hash
You can use `minetest --version` to find it.]
- Other mods activated: [mods activated in the world where the bug appeared this mod depends on or that depend on this mod]
**Additional context**
Add any other context about the problem here.

@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
labels: enhancement
---
**Is your feature request related to a problem? Please describe.**
Insert a description of what the problem is. Example: I'm always frustrated when [...]
**Describe the solution you'd like**
Insert a description of what you want to happen.
**Describe alternatives you've considered**
Insert a description of any alternative solutions or features you've considered.
**Additional context**
Add any other context eg. screenshots about the feature request here.

13
.github/workflows/luacheck.yml vendored Normal file

@ -0,0 +1,13 @@
name: luacheck
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.0.0
- name: run luacheck
uses: Roang-zero1/factorio-mod-luacheck@master
with:
LUACHECKRC_URL: https://raw.githubusercontent.com/${{github.repository}}/${{github.sha}}/.luacheckrc

@ -1,26 +0,0 @@
allow_defined_top = true
read_globals = {
"default",
"dump",
"ItemStack",
"PseudoRandom",
"stairsplus",
"intllib",
"Settings",
math = { fields = {"sign"} },
"minetest",
"vector",
"VoxelArea",
"VoxelManip",
}
ignore = {
"211",
"212",
"213",
"611",
"612",
"621",
"631"
}

11
.luacheck_tidy Normal file

@ -0,0 +1,11 @@
allow_defined_top = true
read_globals = {
"minetest", "default",
"dump", "vector",
"VoxelManip", "VoxelArea",
"ItemStack", "PseudoRandom",
"stairsplus", "intllib",
"Settings",
math = { fields = {"sign"} }
}

@ -1,11 +1,26 @@
allow_defined_top = true allow_defined_top = true
read_globals = { read_globals = {
"minetest", "default", "default",
"dump", "vector", "dump",
"VoxelManip", "VoxelArea", "ItemStack",
"ItemStack", "PseudoRandom", "PseudoRandom",
"stairsplus", "intllib", "stairsplus",
"intllib",
"Settings", "Settings",
math = { fields = {"sign"} } math = { fields = {"sign"} },
} "minetest",
"vector",
"VoxelArea",
"VoxelManip",
}
ignore = {
"211",
"212",
"213",
"611",
"612",
"621",
"631"
}

@ -7,15 +7,15 @@ addons:
before_install: before_install:
- luarocks install --local luacheck - luarocks install --local luacheck
env: env:
- CONFIG=.luacheck_health - CONFIG=.luacheck_tidy
- CONFIG=.luacheckrc - CONFIG=.luacheckrc
matrix: matrix:
allow_failures: allow_failures:
- name: "beauty check" - name: "beauty check"
env: CONFIG=.luacheckrc env: CONFIG=.luacheck_tidy
exclude: exclude:
- name: "health check" - name: "health check"
env: CONFIG=.luacheck_health env: CONFIG=.luacheckrc
script: script:
- $HOME/.luarocks/bin/luacheck --config $CONFIG . - $HOME/.luarocks/bin/luacheck --config $CONFIG .
notifications: notifications:

3
mod.conf Normal file

@ -0,0 +1,3 @@
name = microexpansion
description = A storage managing solution to get an overview over all your items.
depends = default