nvim/.github/workflows/stylua.yaml
Jeremie Fraeys cb27b8ec21
Some checks failed
Luacheck / luacheck (push) Successful in 10s
StyLua / stylua (push) Failing after 2s
ci: fix stylua URL to use correct asset name
2026-02-08 15:20:33 -05:00

23 lines
617 B
YAML

---
# Check Lua Formatting
name: StyLua
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
stylua:
runs-on: self-hosted
steps:
- run: |
if ! command -v stylua &> /dev/null; then
curl -sL -o /tmp/stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/download/v2.3.1/stylua-linux-x86_64.zip"
unzip /tmp/stylua.zip -d /tmp
sudo mv /tmp/stylua /usr/local/bin/
rm /tmp/stylua.zip
fi
- run: git clone --depth=1 $GITHUB_SERVER_URL/$GITHUB_REPOSITORY.git repo
- run: cd repo && stylua --check .