fix(cicd): manually setup StyLua and Luacheck as GH Actions don't work
Some checks failed
StyLua / StyLuacheck (push) Has been cancelled

This commit is contained in:
Jiří Štefka 2023-10-04 08:43:16 +02:00
parent 458af12abf
commit e916c47d3e
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
2 changed files with 15 additions and 7 deletions

View file

@ -6,5 +6,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup Luacheck
run |
apt update && apt -y install lua-check
- name: Luacheck linter - name: Luacheck linter
uses: lunarmodules/luacheck@v1 run: |
luacheck .

View file

@ -6,10 +6,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Setup StyLua
run: |
apt update && apt install cargo -y
cargo install stylua
- name: StyLua check - name: StyLua check
uses: JohnnyMorganz/stylua-action@v3 run: |
with: stulua .
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 .