ci(lint): fix `when` closes
ci/woodpecker/push/lint Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-08-12 19:45:52 +02:00
parent fc94e3cc63
commit 55085ec94d
1 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,8 @@
variables: &when
when:
path:
include: [".woodpecker/lint.yml", "*.lua"]
pipeline: pipeline:
lint: lint:
image: ghcr.io/lunarmodules/luacheck:v0.26.1 image: ghcr.io/lunarmodules/luacheck:v0.26.1
@ -5,14 +10,11 @@ pipeline:
commands: commands:
- apk add just - apk add just
- just check-lua - just check-lua
when: *when
style: style:
image: alpine:edge # Stylua is only available on edge repository for now image: alpine:edge # Stylua is only available on edge repository for now
group: lint group: lint
commands: commands:
- apk add just stylua - apk add just stylua
- just check-format - just check-format
when: *when
when:
branch: master
path:
include: [ '.woodpecker/lint.yml', '*.lua' ]