60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
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.11-alpine
|
|
# group: lint
|
|
# commands:
|
|
# - woodpecker-cli lint .woodpecker/*.yml
|
|
# when:
|
|
# path:
|
|
# - ".woodpecker/**"
|
|
|
|
lint-rockspec:
|
|
image: gitea.aireone.xyz/aire-one/awesomewm.d.tl/luacheck_just:latest
|
|
group: lint
|
|
commands:
|
|
- just check-rockspecs
|
|
when:
|
|
path:
|
|
- ".woodpecker/**"
|
|
- "awesomewmdtl-dev-1.rockspec"
|
|
- "rockspec/*.rockspec"
|
|
|
|
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
|
|
|
|
depends_on:
|
|
- docker-build
|