Fix LuaCheck workflow (#53)

This commit is contained in:
David Leal 2023-08-31 12:50:18 -06:00 committed by GitHub
parent 041abf66a5
commit c5195f4ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -12,13 +12,11 @@ jobs:
- run: |
sudo apt-get update -qq
sudo apt-get install -qqq luarocks
- name: Install pre-commit
run: pip3 install pre-commit
- name: Install LuaCheck
run: luarocks install --local luacheck
- name: Install LuaCheck and pre-commit
run: |
pip3 install pre-commit
luarocks install --local luacheck
- name: Run LuaCheck using pre-commit
run: |
export PATH="$HOME/.luarocks/bin:$PATH"
pre-commit run --all-files
$HOME/.luarocks/bin/luacheck .