fix(cicd): manually setup StyLua and Luacheck as GH Actions don't work
Some checks failed
StyLua / StyLuacheck (push) Has been cancelled
Some checks failed
StyLua / StyLuacheck (push) Has been cancelled
This commit is contained in:
parent
458af12abf
commit
e916c47d3e
@ -6,5 +6,11 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Luacheck
|
||||
run |
|
||||
apt update && apt -y install lua-check
|
||||
|
||||
- name: Luacheck linter
|
||||
uses: lunarmodules/luacheck@v1
|
||||
run: |
|
||||
luacheck .
|
||||
|
@ -6,10 +6,12 @@ jobs:
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup StyLua
|
||||
run: |
|
||||
apt update && apt install cargo -y
|
||||
cargo install stylua
|
||||
|
||||
- name: StyLua check
|
||||
uses: JohnnyMorganz/stylua-action@v3
|
||||
with:
|
||||
token: ${{ secrets.GH_TOKEN }}
|
||||
version: v0.18.2 # NOTE: we recommend pinning to a specific version in case of formatting changes
|
||||
# CLI arguments
|
||||
args: --check .
|
||||
run: |
|
||||
stulua .
|
||||
|
Loading…
x
Reference in New Issue
Block a user