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 .