awesomewm.d.tl/.woodpecker/lint.yml

39 lines
789 B
YAML

variables:
- &when_path_lua
- ".woodpecker/lint.yml"
- "justfile"
- "**/*.lua"
- &when_path_teal
- ".woodpecker/lint.yml"
- "justfile"
- "**/*.tl"
pipeline:
lint-lua:
image: ghcr.io/lunarmodules/luacheck:v0.26.1
group: lint
commands:
- apk add just
- just check-lua
when:
path: *when_path_lua
style-lua:
image: alpine:edge # Stylua is only available on edge repository for now
group: lint
commands:
- apk add just stylua
- just check-format
when:
path: *when_path_lua
lint-teal:
image: akorn/luarocks:lua5.4-alpine
group: lint
commands:
- apk add just gcc libc-dev musl-dev
- luarocks install cyan
- just check-teal
when:
path: *when_path_teal