From 936f4057642c5539cbfa3d725c3a71b95627b324 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:57:36 +0200 Subject: [PATCH] fix(cicd): manually setup actions as GH actions don't work on this image (#2) Reviewed-on: https://gitea.stefka.eu/jiriks74/astronvim_config/pulls/2 --- .gitea/workflows/luacheck.yml | 10 ++++++++-- .gitea/workflows/stylua.yml | 11 ++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/luacheck.yml b/.gitea/workflows/luacheck.yml index fefcaf9..37f3d1d 100644 --- a/.gitea/workflows/luacheck.yml +++ b/.gitea/workflows/luacheck.yml @@ -2,9 +2,15 @@ name: Luacheck on: [push, pull_request] jobs: Luacheck: - runs-on: ubuntu-full-latest + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 + + - name: Setup Luacheck + run: | + apt update && apt install lua-check -y + - name: Luacheck linter - uses: lunarmodules/luacheck@v1 + run: | + luacheck . diff --git a/.gitea/workflows/stylua.yml b/.gitea/workflows/stylua.yml index 800f11f..4e3869a 100644 --- a/.gitea/workflows/stylua.yml +++ b/.gitea/workflows/stylua.yml @@ -2,14 +2,11 @@ name: StyLua on: [push, pull_request] jobs: StyLuacheck: - runs-on: ubuntu-full-latest + 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 . + run: | + npx @johnnymorganz/stylua-bin .