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

48 lines
986 B
YAML

variables:
- &when_path_lua
- ".woodpecker/lint.yml"
- "justfile"
- "**/*.lua"
- &when_path_teal
- ".woodpecker/lint.yml"
- "justfile"
- "**/*.tl"
pipeline:
lint-pipeline:
image: woodpeckerci/woodpecker-cli:v0.15.5-alpine
group: lint
commands:
- woodpecker-cli lint .woodpecker/*.yml
when:
path:
- ".woodpecker/**"
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