From aa2f9138f46cde9ab36d6d5f086e5cbf9319cc8e Mon Sep 17 00:00:00 2001 From: Thomas Croft <103956335+thomascft@users.noreply.github.com> Date: Sat, 11 Jun 2022 03:39:21 -0600 Subject: [PATCH] Automated testing with Luacheck (#533) --- .github/workflows/main.yml | 12 ++++++++++++ .luacheckrc | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/main.yml create mode 100644 .luacheckrc diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..2959d64 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: Luacheck +on: [push] +jobs: + Luacheck_Tests: + runs-on: ubuntu-latest + steps: + - run: echo "Running tests triggered by a ${{ github.event_name }} event." + - run: echo "Testing ${{ github.ref }} from ${{ github.repository }} on ${{ runner.os }}" + - name: Check out code + uses: actions/checkout@v3 + - name: Run tests + uses: lunarmodules/luacheck@v0 diff --git a/.luacheckrc b/.luacheckrc new file mode 100644 index 0000000..5889780 --- /dev/null +++ b/.luacheckrc @@ -0,0 +1,11 @@ +codes = true +allow_defined = true +max_line_length = false + +globals = { + "client", "screen", "mouse" +} + +ignore = { + "131", +}