From 26785814c8616b223db257f7ad66e9211bf44322 Mon Sep 17 00:00:00 2001 From: Fredrik Averpil Date: Sun, 12 May 2024 13:17:29 +0200 Subject: [PATCH] feat: add lua linting --- .github/workflows/lint.yml | 17 +++++++++++++++++ 1 file changed, 17 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..96a7e9d --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,17 @@ +name: lint +on: [pull_request, workflow_dispatch] +jobs: + lua: + strategy: + matrix: + version: [stable, nightly] + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Check formatting + uses: JohnnyMorganz/stylua-action@v2 + with: + token: ${{ secrets.GITHUB_TOKEN }} + version: latest + args: --check .