Skip to content

feat: Run on BufRead #2

feat: Run on BufRead

feat: Run on BufRead #2

Workflow file for this run

name: Lua Style Check
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Lua
uses: leafo/gh-actions-lua@v8
- name: Install Stylua
run: |
LATEST_URL=$(curl -s https://api.github.com/repos/JohnnyMorganz/StyLua/releases/latest | jq -r '.assets[] | select(.name | contains("linux-x86_64.zip")) | .browser_download_url')
echo "Latest download URL: $LATEST_URL"
curl -L $LATEST_URL -o stylua.zip
unzip stylua.zip
chmod +x stylua
- name: Run Stylua
run: |
./stylua --check .