install stylua for pre-commit check

This commit is contained in:
flux 2023-01-22 19:15:12 -08:00
parent 116ea12a79
commit b58368ea6a
No known key found for this signature in database
GPG Key ID: 9333B27816848A15
1 changed files with 8 additions and 2 deletions

View File

@ -12,11 +12,17 @@ jobs:
- name: install luarocks
run: sudo apt-get install -y luarocks
- name: add luacheck path
run: echo "$HOME/.luarocks/bin" >> $GITHUB_PATH
- name: luacheck install
run: luarocks install --local luacheck
- name: add luacheck path
run: echo "$HOME/.luarocks/bin" >> $GITHUB_PATH
- name: install cargo
run: sudo apt-get install -y cargo
- name: install stylua
run: cargo install stylua
- name: Install pre-commit
run: pip3 install pre-commit