From e916c47d3e5a179e64e3fd248a7f5b053f5a5ade 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:43:16 +0200 Subject: [PATCH] fix(cicd): manually setup StyLua and Luacheck as GH Actions don't work --- .gitea/workflows/luacheck.yml | 8 +++++++- .gitea/workflows/stylua.yml | 14 ++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) 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 .