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

View File

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