From e965030d7bf8dd6d7b0c42d5033d5745e519cd43 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 24 Mar 2022 14:22:28 +0300 Subject: [PATCH] ci: Utilize new upstream Luacheck Action As of v0.26.0, the Luacheck repository is enabled to run *as* a GH Action so there is no need to install Lua, LuaRocks, then the linter, etc. Just one `uses:`. --- .github/workflows/luacheck.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/luacheck.yml b/.github/workflows/luacheck.yml index 597cd64..2f20456 100644 --- a/.github/workflows/luacheck.yml +++ b/.github/workflows/luacheck.yml @@ -7,13 +7,7 @@ jobs: luacheck: runs-on: ubuntu-20.04 steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup ‘lua’ - uses: leafo/gh-actions-lua@v9 - - name: Setup ‘luarocks’ - uses: leafo/gh-actions-luarocks@v4 - - name: Setup ‘luacheck’ - run: luarocks install luacheck - - name: Run ‘luacheck’ linter - run: luacheck . + - name: Checkout + uses: actions/checkout@v3 + - name: Luacheck + uses: lunarmodules/luacheck@v0