23 lines
428 B
YAML
23 lines
428 B
YAML
---
|
|
# Lint Lua code
|
|
name: Luacheck
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
luacheck:
|
|
runs-on: self-hosted
|
|
container:
|
|
image: alpine:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: apk add --no-cache lua5.1 luarocks5.1 git
|
|
shell: /bin/sh
|
|
- run: luarocks-5.1 install luacheck
|
|
shell: /bin/sh
|
|
- run: luacheck .
|
|
shell: /bin/sh
|