From 708d2b60e0bbe3851f4f945bfea94cc0313c37a2 Mon Sep 17 00:00:00 2001 From: Michael Mogenson Date: Sun, 7 Jan 2024 15:13:45 -0500 Subject: [PATCH] Add github action --- .github/workflows/lint.yml | 22 ++++++++++++++++++++++ .luarc.json | 8 ++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .luarc.json diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..ef4ee7d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,22 @@ +--- +name: Lint Code Base +on: + pull_request: ~ + push: + branches: + - main + +jobs: + build: + name: Lint Code Base + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Lint Code Base + uses: mrcjkb/lua-typecheck-action@v0.2.0 + with: + configpath: ".luarc.json" + directories: "." diff --git a/.luarc.json b/.luarc.json new file mode 100644 index 0000000..555eaeb --- /dev/null +++ b/.luarc.json @@ -0,0 +1,8 @@ +{ + "diagnostics": + { + "globals": [], + "neededFileStatus": { "codestyle-check": "Any" }, + }, + "runtime.version": "Lua 5.1", +}