ci(lint): initial lint pipeline

This commit is contained in:
Aire-One 2022-08-12 19:10:51 +02:00
parent 5fac5864de
commit 654b59b934
3 changed files with 16 additions and 12 deletions

View File

@ -16,3 +16,6 @@ indent_size = 2
[*.json]
indent_size = 2
[*.yml]
indent_size = 2

View File

@ -1,12 +0,0 @@
pipeline:
prepare:
image: akorn/luarocks:lua5.4-alpine
commands:
- apk add just gcc musl-dev curl-dev
- just install
check:
image: akorn/luarocks:lua5.4-alpine
commands:
- apk add just
- luarocks install luacheck
- just check

13
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,13 @@
pipeline:
lint:
image: ghcr.io/lunarmodules/luacheck:v0.26.1
group: lint
commands:
- apk add just
- just check-lua
style:
image: alpine:edge # Stylua is only available on edge repository for now
group: lint
commands:
- apk add just stylua
- just check-format