Skip to content

ci: update lint.yaml (#95) #184

ci: update lint.yaml (#95)

ci: update lint.yaml (#95) #184

Workflow file for this run

name: Linting & Formatting
on:
push:
branches: [main, dev]
pull_request:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@master
with:
luaVersion: "luajit-2.1.0-beta3"
- uses: leafo/[email protected]
- name: Install linter
run: luarocks install luacheck
- name: Lint
run: luacheck lua
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.20.0 # NOTE: we recommend pinning to a specific version in case of formatting changes
# CLI arguments
args: --check lua