ci: fix CUE linter
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
387e540114
commit
2bb6445e56
@ -39,7 +39,7 @@ import (
|
||||
// CACHE: copy only *.cue files
|
||||
docker.#Copy & {
|
||||
contents: source
|
||||
include: ["*.cue", "**/*.cue"]
|
||||
include: [".git", "*.cue", "**/*.cue"]
|
||||
dest: "/cue"
|
||||
},
|
||||
|
||||
@ -47,6 +47,8 @@ import (
|
||||
bash.#Run & {
|
||||
workdir: "/cue"
|
||||
script: contents: #"""
|
||||
git status
|
||||
|
||||
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -t -n 1 -P 8 cue fmt -s
|
||||
test -z "$(git status -s . | grep -e "^ M" | grep "\.cue" | cut -d ' ' -f3 | tee /dev/stderr)"
|
||||
"""#
|
||||
|
@ -8,12 +8,7 @@ import (
|
||||
dagger.#Plan & {
|
||||
client: filesystem: "./data/hello": read: contents: dagger.#FS
|
||||
|
||||
actions: test: {
|
||||
simple: {
|
||||
fmtCheck: lua.#StyluaCheck & {
|
||||
actions: test: simple: fmtCheck: lua.#StyluaCheck & {
|
||||
source: client.filesystem."./data/hello".read.contents
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user