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

37 lines
755 B
YAML
Raw Normal View History

2022-08-13 03:10:11 +02:00
variables:
2022-08-20 13:32:23 +02:00
- &when_path_lua
2022-08-13 03:10:11 +02:00
- ".woodpecker/lint.yml"
- "**/*.lua"
2022-08-20 13:32:23 +02:00
- &when_path_teal
- ".woodpecker/lint.yml"
- "**/*.tl"
2022-08-13 03:10:11 +02:00
2022-08-12 19:10:51 +02:00
pipeline:
2022-08-20 13:32:23 +02:00
lint-lua:
2022-08-12 19:10:51 +02:00
image: ghcr.io/lunarmodules/luacheck:v0.26.1
group: lint
commands:
- apk add just
- just check-lua
2022-08-12 19:45:52 +02:00
when:
2022-08-20 13:32:23 +02:00
path: *when_path_lua
2022-08-12 19:45:52 +02:00
2022-08-20 13:32:23 +02:00
style-lua:
2022-08-12 19:10:51 +02:00
image: alpine:edge # Stylua is only available on edge repository for now
group: lint
commands:
- apk add just stylua
- just check-format
2022-08-12 19:45:52 +02:00
when:
2022-08-20 13:32:23 +02:00
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