From c02b4ee543590ed86860ce90d606bc21c28b2c7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Wed, 4 Oct 2023 08:30:25 +0200 Subject: [PATCH] feat(ci/cd): add luacheck and stylua --- .github/workflows/luacheck.yml | 10 ++++++++++ .github/workflows/stylua.yml | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .github/workflows/luacheck.yml create mode 100644 .github/workflows/stylua.yml diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000..87145d9 --- /dev/null +++ b/.github/workflows/luacheck.yml @@ -0,0 +1,10 @@ +name: Luacheck +on: [push, pull_request] +jobs: + Luacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Luacheck linter + uses: lunarmodules/luacheck@v1 diff --git a/.github/workflows/stylua.yml b/.github/workflows/stylua.yml new file mode 100644 index 0000000..639c7e1 --- /dev/null +++ b/.github/workflows/stylua.yml @@ -0,0 +1,15 @@ +name: StyLua +on: [push, pull_request] +jobs: + StyLuacheck: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: StyLua check + uses: JohnnyMorganz/stylua-action@v3 + with: + token: ${{ secrets.GH_TOKEN }} + version: v0.18.2 # NOTE: we recommend pinning to a specific version in case of formatting changes + # CLI arguments + args: --check .