From 423330ddc93bde9ebaf030096fa664447670978b Mon Sep 17 00:00:00 2001 From: David Leal Date: Tue, 6 Feb 2024 07:14:10 +0000 Subject: [PATCH] Use a faster and newer LuaCheck --- .github/workflows/build.yml | 16 ---------------- .github/workflows/luacheck.yml | 10 ++++++++++ 2 files changed, 10 insertions(+), 16 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/luacheck.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index fea960c17d..0000000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: build -on: [push, pull_request] - -jobs: - luacheck: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install Luarocks - run: | - sudo apt-get update -qyy - sudo apt-get install luarocks -qyy - - name: Install Luacheck - run: luarocks install --local luacheck - - name: Run Luacheck - run: $HOME/.luarocks/bin/luacheck mods diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml new file mode 100644 index 0000000000..7cebcd9f8e --- /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@v4 + - name: Luacheck + uses: lunarmodules/luacheck@master