From 8b537187fc0ba8b1087c9bf0828b6eca1a5387c0 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 18 Jan 2024 18:17:05 -0600 Subject: [PATCH] github: add a linter action Signed-off-by: Kyle Evans --- .github/workflows/lint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..a400594 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,25 @@ +name: Lint orch.lua +on: + push: + branches: ['*'] + pull_request: + types: [opened, reopened, edited, synchronize] + +permissions: + contents: read + +jobs: + build: + name: Lint + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install system packages + run: | + sudo apt-get update --quiet || true + sudo apt-get -yq --no-install-suggests --no-install-recommends install luarocks + - name: install lua packages + run: sudo luarocks install luacheck + - name: run linter + run: make lint