ci: fix cue linter
Signed-off-by: Sam Alba <samalba@users.noreply.github.com>
This commit is contained in:
parent
ba0f565dbf
commit
492a7ff9c3
@ -92,8 +92,10 @@ dagger.#Plan & {
|
|||||||
input: _baseImages.cue
|
input: _baseImages.cue
|
||||||
|
|
||||||
script: contents: #"""
|
script: contents: #"""
|
||||||
|
# Format the cue code
|
||||||
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s
|
find . -name '*.cue' -not -path '*/cue.mod/*' -print | time xargs -n 1 -P 8 cue fmt -s
|
||||||
test -z "$$(git status -s . | grep -e "^ M" | grep .cue | cut -d ' ' -f3 | tee /dev/stderr)"
|
# Check that all formatted files where committed
|
||||||
|
test -z $(git status -s . | grep -e '^ M' | grep .cue | cut -d ' ' -f3)
|
||||||
"""#
|
"""#
|
||||||
workdir: mounts["dagger source code"].dest
|
workdir: mounts["dagger source code"].dest
|
||||||
mounts: {
|
mounts: {
|
||||||
|
Reference in New Issue
Block a user