From 5e4867fa1297f4e124bfb9723d8a93447f34621c Mon Sep 17 00:00:00 2001 From: MoNTE48 Date: Sun, 28 Feb 2021 10:15:24 +0100 Subject: [PATCH] Add Github Actions --- .github/workflows/build.yml | 11 +++++++++++ .luacheckrc | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .luacheckrc diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..2524515 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,11 @@ +on: [push, pull_request] +name: build +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: lint + uses: Roang-zero1/factorio-mod-luacheck@master + with: + luacheckrc_url: https://raw.githubusercontent.com/MultiCraft/weather_lite/main/.luacheckrc diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..e7563a7 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,10 @@ +max_line_length = 90 + +read_globals = { + "minetest", + "sscsm", + "ItemStack", + "vector", + table = { fields = { "copy" } } +} +