feat(ci/cd): add luacheck and stylua

This commit is contained in:
Jiří Štefka 2023-10-04 08:30:25 +02:00
parent 96ff1d7933
commit c02b4ee543
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
2 changed files with 25 additions and 0 deletions

10
.github/workflows/luacheck.yml vendored Normal file
View file

@ -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

15
.github/workflows/stylua.yml vendored Normal file
View file

@ -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 .