nvim/.github/workflows/stylua.yaml
Jeremie Fraeys ba42701d43
Some checks failed
Luacheck / luacheck (push) Failing after 12s
StyLua / stylua (push) Failing after 2s
ci: remove container, run directly on Ubuntu host
2026-02-08 15:12:16 -05:00

23 lines
609 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 -L -o /tmp/stylua.zip "https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux.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 .