diff --git a/.gitea/workflows/luacheck.yml b/.gitea/workflows/luacheck.yml index fefcaf9..105265f 100644 --- a/.gitea/workflows/luacheck.yml +++ b/.gitea/workflows/luacheck.yml @@ -6,5 +6,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Setup Luacheck + run | + apt update && apt -y install lua-check + - name: Luacheck linter - uses: lunarmodules/luacheck@v1 + run: | + luacheck . diff --git a/.gitea/workflows/stylua.yml b/.gitea/workflows/stylua.yml index 800f11f..86d21b0 100644 --- a/.gitea/workflows/stylua.yml +++ b/.gitea/workflows/stylua.yml @@ -6,10 +6,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + + - name: Setup StyLua + run: | + apt update && apt install cargo -y + cargo install stylua + - 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 . + run: | + stulua .