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:`.
This commit is contained in:
parent
c1eacfa6d2
commit
e965030d7b
1 changed files with 4 additions and 10 deletions
14
.github/workflows/luacheck.yml
vendored
14
.github/workflows/luacheck.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue