46 lines
940 B
YAML
46 lines
940 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:next-alpine
|
|
# group: lint
|
|
# commands:
|
|
# - woodpecker-cli lint .woodpecker/*.yml
|
|
# when:
|
|
# path:
|
|
# - ".woodpecker/**"
|
|
|
|
lint-lua:
|
|
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
|
|
group: lint
|
|
commands:
|
|
- just check-lua
|
|
when:
|
|
path: *when_path_lua
|
|
|
|
style-lua:
|
|
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/stylua_just:latest
|
|
group: lint
|
|
commands:
|
|
- just check-format
|
|
when:
|
|
path: *when_path_lua
|
|
|
|
lint-teal:
|
|
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/cyan:latest
|
|
group: lint
|
|
commands:
|
|
- just check-teal
|
|
when:
|
|
path: *when_path_teal
|
|
|
|
branches: master
|