ci(lint): initial lint pipeline
This commit is contained in:
parent
5fac5864de
commit
654b59b934
|
@ -16,3 +16,6 @@ indent_size = 2
|
||||||
|
|
||||||
[*.json]
|
[*.json]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
Loading…
Reference in New Issue